On Tue, Aug 17, 2010 at 9:04 PM, Alan Holden <[email protected]> wrote:
> 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()) />
>
Uh ... I'd have to experiment but my gut tells me no. My concern is the
getPageContext().getRequest() and getPageContext().getResponse() in
particular, since as those sound they're specific to each request/response.
It's worth a shot though to see what would happen.
>
> 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() />
>
That all depends on where you're putting your cfSession object. If you do
that once in OnApplicationStart I assume you'd want to put that in a shared
scope like application to have it handy?
I realize I'm asking more questions than I'm answering. ;-) I'd just have to
experiment to see what the behavior is.
> I wonder how scalable that is...
Since this is all already available in the servlet request/response anyway
the only hit you're really taking is the time it takes to instantiate the
Java object(s), which is pretty negligible.
I'll be curious to see what you find. If I get a chance I'll mess with it
but I owe someone a quick twitter4j demo too. ;-)
--
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward
Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
--
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