On 8/16/2010 9:52 PM, Matthew Woodward wrote:
I could have combined that all into one line but I didn't want anyone's head to explode. ;-)

Too late...

So, I could instantiate the object once here OnApplicationStart:
<cfset cfSession = CreateObject('java', 'com.naryx.tagfusion.cfm.engine.cfSession').init(getPageContext().getRequest(), getPageContext().getResponse(), getPageContext().getServletContext()) />

And when it came time to pull session information this way:
<cfset allSessions = createObject('java', 'com.naryx.tagfusion.cfm.application.cfApplicationManager').getAppData(cfSession, 'foo').getSessions() />

Then, I would look through all the session structs for the one with the target sessionId key.

Thanks, I'll try it this weekend!

I wonder how scalable that is... although it would only be called as a failover - when the API can't find any matching session traditionally (it happens when a Flex app is making a RemoteObject call to the API).

Al

--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
official manual: http://www.openbluedragon.org/manual/
Ready2Run CFML http://www.openbluedragon.org/openbdjam/

mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to