Out of interest Dan, does the forName() trick allow any java class to
be instantiated where the createObject() function is sandboxed off?
On 11/14/06, Dan Plesse <[EMAIL PROTECTED]> wrote:
> No big deal but you could have
>
> <cfset allSessions= createObject("java","coldfusion.runtime.SessionTracker
> ").getSessionCollection(application.applicationName) />
>
> or if don't feel like using createObject() function or createObject tag
> sometimes you can just forName() method of Class object
>
> <cfset stringObject = "">
> <cfset anyClass = stringObject.getClass()>
> <cfset allSessions = anyClass.forName("coldfusion.runtime.SessionTracker
> ").newInstance().getSessionCollection(application.applicationName)/>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260326
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4