Presentation - CF Conf Central
Download
Report
Transcript Presentation - CF Conf Central
CFMX Java Integration
Matt Liotta
President & CEO
Montara Software, Inc.
Agenda
• Why Java
• Why CF and Java
• J2SE integration
• J2EE integration
• Integration issues
• The wide world of Java
•Q&A
Why Java
Java has greater…
• Power
• Flexibility
• Performance
• Code availability
However, it comes at a cost!
Why CF And Java
CFML is better than JSP!!!
J2SE Integration
•
•
•
•
•
•
What is J2SE
JVM
JARs
CFOBJECT
CFX
Reflection
What is J2SE
Java 2 Standard Edition
• Specification
• JVM
• Core Java libraries
• Many different vendors
JVM
Java Virtual Machine
• Runtime
• Abstracts underlying OS
• Executes Java bytecode
• Many different platforms
JARs
Java Archive
• Provides packaging
• Similar to Unix tar
• Essentially a ZIP file
containing…
• Class files
• Property files
• Other meta data
CFOBJECT
• See code example
CFX
• See code example
Reflection
• See code example
J2EE Integration
• What is J2EE
• Servlet engines
• Application servers
• WARs
• EARs
• Servlets
• JSPs
What is J2EE
Java 2 Enterprise Edition
• Specification
• Extends J2SE
• Enterprise services
• Servlet/JSP
• EJB
• JMS
• Many different vendors
Servlet Engines
• Implement only part of J2EE
• Provide Servlet and JSP
services
• Apache Tomcat is reference
implementation
• CFMX is not supported on
Servlet engines
• CFMX can be configured to run
on Servlet engines
Application Servers
• Implement all of J2EE
• Provide Servlet, JSP, EJB, JMS
services
• CFMX is supported on certain
application servers
• CFMX can be configured to run
on all application servers
WARs
Web Application Archive
• Provides packaging
• Similar to JAR
• Essentially a JAR containing
everything a Servlet engine
needs to deploy a web
application
EARs
Enterprise Archive
• Provide packaging
• Similar to JAR
• Essentially a JAR containing
everything an application server
needs to deploy a J2EE
component
Servlets
• See code example
JSPs
• See code example
Integration Issues
• Primitives
• Casting
• Overloading
• Nulls
• Static classes
The Wide World Of Java
• JCP
• Apache
• JBoss
• SourceForge
Q&A
Matt Liotta
Blog: http://DevilM.com
Email: [email protected]