Is it ok to store large objects (java component for example) in an Application variable?

Posted by DustMason on Stack Overflow See other posts from Stack Overflow or by DustMason
Published on 2010-05-17T17:26:36Z Indexed on 2010/05/17 17:30 UTC
Read the original article Hit count: 206

Filed under:
|
|

I am developing an app right now which creates and stores a connection to a local XMPP server in the Application scope. The connection methods are stored in a cfc that makes sure the Application.XMPPConnection is connected and authorized each time it is used, and makes use of the connection to send live events to users. As far as I can tell, this is working fine. BUT it hasn't been tested under any kind of stress.

My question is: Will this set up cause problems later on? I only ask because I can't find evidence of other people using Application variables in this way. If I weren't using railo I would be using CF's event gateway instead to accomplish the same task.

© Stack Overflow or respective owner

Related posts about coldfusion

Related posts about cfwheels