Ben Forta

Blog

December 21, 2002

ColdFusion to Java Type Conversion

When possible, ColdFusion automatically handles the conversion of types between it and Java. Most types (for example, integer, date, and boolean) have obvious conversions. Complex data types (including structure and query) do not have exact Java equivalents and are converted to Map. (Applies to:...

December 20, 2002

Java Object Search Order

When Java objects are invoked, ColdFusion attempts to locate the required objects automatically. ColdFusion searches the following locations (in this order): WEB-INF/lib, WEB-INF/classes, the classpath specified in the ColdFusion Administrator, the default JVM classpath. (Applies to: ColdFusion MX)

December 17, 2002

Improving Web Service Invocation Performance

If you make multiple requests to a Web Service you can improve performance by not making ColdFusion set up and prepare the connection repeatedly. How? Instead of using use CreateObject(), this way ColdFusion maintains Web Service information in a variable that can be used repeatedly. And you can...

December 16, 2002

Clustering Session Variables

If you need to share session data across a cluster then you must use CLIENT variables. Right? Wrong! CLIENT variables can indeed be shared, but if you are using ColdFusion for J2EE (and J2EE managed SESSION variables) then SESSION variables can be clustered too. There is one gotcha however,...

December 15, 2002

Enabling White Space Suppression

ColdFusion MX for J2EE does not have a checkbox for enabling white space suppression. This is an oversight, the option is actually supported, it is just not exposed in the Administrator. The solution? Edit the configuration file directly. Here's what you need to do: 1) Stop ColdFusion. 2) Open the...

December 14, 2002

CreateObject() Web Service Invocation

Web Services are invoked using . Right? Not necessarily. ColdFusion MX will actually allow you to invoke Web Services using CreateObject() using the syntax CreateObject("webservice", "wsdl") (replacing "wsdl" with the wsdl URL). CreateObject() returns and object allowing you to invoke methods using...

December 13, 2002

"Any" Can Be Anywhere

If you are using / the order of the blocks does not matter - ColdFusion will find the best fit. This is unlike earlier versions of ColdFusion where "any" had to be the last block (or it would catch all errors). (Applies to: ColdFusion MX)

December 12, 2002

A Stricter

If you are using then you should never have code that is in the block but not in a or . ColdFusion 5 allowed this (mistakenly) and ColdFusion MX no longer permits this (although you should never have been doing it anyway). (Applies to: ColdFusion MX)

Page 407 of 489 (4889 posts)