As far as I know the solution I was talking about is for services only. I haven't written a module yet. So, not sure how to control lifecycle of a module. Sorry....
Gul -----Original Message----- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 11:09 AM To: [email protected] Subject: Re: [axis2] module & lifecycle management Hi Gul, thanks for your reply, but I'm speaking of *modules*, not services. Does this apply to modules as well? Michele Gul Onural wrote: > Hi Michele, > > You will need to introduce a class (say MyServiceLifeCycleClass) which > implements ServiceLifeCycle interface. In service.xml you need to > declare this class : > > <service name="MyService" class="MyServiceLifeCycleClass" > scope="application"> > <messageReceivers> > ... > </messageReceivers> > <parameter name="ServiceClass" > locked="false">MyServiceClass</parameter> > ... > </service> > > Gul > > -----Original Message----- > From: Michele Mazzucco [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 15, 2006 10:53 AM > To: Axis user mailing list > Subject: [axis2] module & lifecycle management > > Hi all, > > I need to add lifecycle management to my custom module. More in > detail, I need to instantiate an object when the system starts and > "destroy" it when the systems shuts down. > Is it possible? Is this the aim of the init() and shutdown() methods? > > Thanks, > Michele > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
