ColdFusion MX: J2EE Integration Magic
Macromedia has completely rewritten ColdFusion. ColdFusion MX (v6) now runs on top of a Java Application Server (like JRun or WebSphere). This means we get the ease of CFML with the raw power of the Java ecosystem.
Calling Java from CFML
You don't need to write a wrapper; you can just instantiate Java classes directly in your .cfm files.
<cfset myArrayList = CreateObject("java", "java.util.ArrayList").init()>
<cfset myArrayList.add("ColdFusion")>
<cfset myArrayList.add("Java")>
<cfset myArrayList.add("Integration")>
<cfoutput>
ArrayList Size: #myArrayList.size()#
</cfoutput>
CFObject and EJBs
If your enterprise is using Enterprise JavaBeans (EJBs), ColdFusion MX can talk to them natively.
<cfobject action="create"
type="ejb"
class="com.company.AccountHome"
name="accountHome"
jndiName="AccountBean">
<cfset account = accountHome.findByPrimaryKey("12345")>
<p>Balance: <cfoutput>#account.getBalance()#</cfoutput></p>
The Flash Remoting Connection
CFMX also introduced Flash Remoting, allowing Flash MX movies to call ColdFusion functions directly using AMF (Action Message Format). This is significantly faster than parsing XML-RPC or SOAP. ColdFusion is finally growing up and becoming a first-class citizen in the enterprise world.
Aunimeda develops websites and web applications for businesses - corporate sites, e-commerce, portals, and custom platforms.
Contact us to discuss your web project. See also: Web Development, E-commerce Development