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]