In Part 5 (CFDJ, Vol. 3, issue 8), "Java CFX Basics," I identified some
shortcomings of the CFX model. In Part 7, I demonstrate a number of
workarounds and solutions to these problems.
In many cases what I present here is viable across the board for all CFX
types. However, this series deals specifically with Java interoperability, so
I'll leave the modifications to you.
Complex Data Types
One of the critical problems with the CFX model is the inability to pass
complex data types into and out of a CFX. Only simple types are possible - no
structures, no arrays, and only a single query (using the QUERY attribute).
This can be a considerable challenge when attempting to integrate with higher
order applications that must work with large amounts of data using one of the
"rest... (more)
Prior to ColdFusion 4.5 a developer could only write CFX tags in a binary
language that supported the dynamic linking capabilities of the target
platform.
For Windows it was C/C++ and Delphi and the like, any language that could
create a DLL. For the UNIX platforms, it was pretty much the same thing -
only with shared objects. Naturally anytime a CFX was distributed it needed
to be comp... (more)
The new release of ColdFusion has some interesting new Java features that
just beg for a return and so here we are again! As with the previous series,
I'll take the time to cover the basics of these new features before I dig a
bit deeper.
Event Gateways
Undoubtedly one of the coolest new Java features in ColdFusion MX 7 is event
gateways - opening up a whole new set of possibilities that ... (more)
Part 1 in this series (CFDJ, Vol. 7, issue 5) discussed the options in the
ColdFusion Administrator for configuring the event gateway facility in
ColdFusion MX 7 and how to register new event gateway types.
There was little in the way of explaining how to use event gateways, so in
this article we'll explore the basics of using event gateways through two
examples: the code from the previou... (more)
Without a doubt, one of the most powerful assets available from the
ColdFusion and Javamarriage is the simple ability to call up anything from
the extensive Java class libraries.
In this article we'll look at the basics of working with Java in ColdFusion.
I'll specifically talk about the different ways to create and use a Java
object within your templates. As with most things, there are a... (more)