AboutBlogContact
Web DevelopmentOctober 25, 2002 1 min read 71Updated: May 3, 2026

ColdFusion MX: J2EE Integration Magic (2002)

AunimedaAunimeda
📋 Table of Contents

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

Read Also

Quora: Knowledge Sharing for the New Decadeaunimeda
Web Development

Quora: Knowledge Sharing for the New Decade

Ex-Facebook employees have launched Quora. It's a Q&A site that prioritizes high-quality answers and verified identities.

Pinterest: The Visual Discovery Engineaunimeda
Web Development

Pinterest: The Visual Discovery Engine

Pinterest is a new way to 'pin' images from across the web. It's a visual bookmarking tool that's surprisingly addictive.

Java Struts 1.1: Master of the ActionServlet and Form Beans (2003)aunimeda
Web Development

Java Struts 1.1: Master of the ActionServlet and Form Beans (2003)

The Model-View-Controller pattern has arrived in the world of Java Servlets. Learn how to configure your struts-config.xml for enterprise-grade web apps.

Need IT development for your business?

We build websites, mobile apps and AI solutions. Free consultation.

Web Development

Get Consultation All articles