Dr Janusz Martyniak wrote: > Deepal Jayasinghe wrote: > >> Hi Janusz; >> >>> but, >>> >>> The init() is called every time I invoke the method. >> >> >> That will only happen if you deploy your service in request scope , if >> you deploy your service in application scope then that will never >> happen. >> > > Well, if I deploy my service as an application then init() is called > once and all the clients will share the implementation instance and > the latter is not what I want. > > What I'm trying to achieve is to keep the request mode, so every > client gets his own instance of a service, but have a possibility to > initialise the service once, possibly at servlet loading time, or at a > very first call. The init() method does not deliver this.
Well , then you need to have a look at ServiceLifeCycle interface. I hope using that you will be able to achieve what you want. Thanks Deepal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
