You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by an...@claire.co.jp on 2001/12/25 05:02:42 UTC
Is there a global constructor I can use to initialise application wide beans?
Hi
I have some beans which I want to be visible application wide. I want
them to be initilised when my struts application is started. Is there a
mechanism in struts I can use to make a java program run as part of the
initilisation process. I would put the intilising code into a file
called InitiliseWebApp.java, this would initilise the beans and add
them to the application scope.
Cheers
Antony
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Is there a global constructor I can use to initialise application wide beans?
Posted by an...@claire.co.jp.
Thanks for the reply. Can you please tell me how to make a servlet load
on startup.
Sandeep Takhar wrote:
> Well - there are a number of ways of doing this.
>
> One way is to create a servlet and have it load on
> startup and do the work there.
>
> Sandeep
> --- antony@claire.co.jp wrote:
>
>>Hi
>>
>>I have some beans which I want to be visible
>>application wide. I want
>>them to be initilised when my struts application is
>>started. Is there a
>>mechanism in struts I can use to make a java program
>>run as part of the
>>initilisation process. I would put the intilising
>>code into a file
>>called InitiliseWebApp.java, this would initilise
>>the beans and add
>>them to the application scope.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Is there a global constructor I can use to initialise application wide beans?
Posted by Sandeep Takhar <sa...@yahoo.com>.
Well - there are a number of ways of doing this.
One way is to create a servlet and have it load on
startup and do the work there.
Sandeep
--- antony@claire.co.jp wrote:
> Hi
>
> I have some beans which I want to be visible
> application wide. I want
> them to be initilised when my struts application is
> started. Is there a
> mechanism in struts I can use to make a java program
> run as part of the
> initilisation process. I would put the intilising
> code into a file
> called InitiliseWebApp.java, this would initilise
> the beans and add
> them to the application scope.
>
> Cheers
>
> Antony
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>