Hi Michele ;
>Hi Deepal,
>
>please correct me if I'm wrong, but this is what happens for "normal"
>modules.
>
Yes it is.
>Do you mean "standard" modules come with lifecycle management
>for free :)?
>
>
I didnt mean that , but that interface has two methods one will be
called at the system startup time (init) and other will called at the
system shutdown time (shutdown).
>What I want is
>
>public class MyModule implements Module {
>
>// engage, canSupportAssertion, engageNotify()
>
> private MyClass c;
>
> public void init(ConfigurationContext configContext, AxisModule
>module) {
>
> this.c = new MyClass();
> this.c.setEnabled(true); // this will set up some connections
> }
>
> public void shutdown(ConfigurationContext configurationContext) {
> this.c.setEnabled(false); // this will finalize the c object,
>close connections, etc.
> }
>
>}
>
>
>Does this work? Do I have only 1 MyClass instance this way?
>
>
Yes , you will have only one instance.
Thanks
Deepal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]