David,
Are you talking about
HttpSessionListener<http://cephas.net/blog/2003/01/26/coldfusion-httpsessionlistener-interface/>
http://cephas.net/blog/2003/01/26/coldfusion-httpsessionlistener-interface/
What happens when you initialize the three objects inside the
listener?
I was going to tell you to use the
coldfusion.bootstrap.BootstrapServlet but
that's for adding servlets at runtime. sorry :)
On 8/12/06, David Murphy <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> I've setup a listener that performs some housekeeping when CFMX starts up
> or shuts down using the contextDestroyed / contextInitialized methods.
>
> I need to be able to instatiate 3 single java objects upon CFMX startup
> and then make them globally available to be shared within CFMX. When CFMX
> shuts down I need to be able to call methods on those 3 objects to perform
> tidy-up tasks before cleanly shutting them down.
>
> I was thinking of storing these shared objects in the ServletContext
> object but I was hoping to first get some guidance on how best to approach
> this?
>
> Many thanks, David
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:249665
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4