You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ramesh Vishwanatham <rv...@dtcc.com> on 2008/10/24 22:39:19 UTC

services initialazation alternative to default lazy initilization

Hi All

Recently I have started exploring axis2 (versions 1.3 and 1.4.1) and read 
documentation from axis2 web site and read  Quickstart Apache Axis2. I 
have following questions regarding service intialazation:

1) Be default services are initialized, calling init method on service 
implementation class, when the first client message invocation happens. 
This is basically lazy initialzation and this is good for cases where you 
want to  preserve resources until really needed. What I am looking is to 
alter this default behaviour so that when my services are deployed or 
application server is restarted, I would like to initialize my services 
with all the needed stuff and ready to be in a state where they  can serve 
client requests. 

2) Writing "init" and "destroy" methods on each service is fine but is 
there way you could write a class at ServiceGroup level and initialize all 
the common stuff needed for  all the services.

I appriciate if some one can answer them how to do with axis2.

Thanks in advance.

Ramesh

 

-----------------------------------------
________________________________________________________
DTCC DISCLAIMER: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email
in error, please notify us immediately and delete the email and any
attachments from your system. The recipient should check this email
and any attachments for the presence of viruses.  The company
accepts no liability for any damage caused by any virus transmitted
by this email.