axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject Re: Why my service class get initilized every service call?
Date Mon, 11 Jun 2007 16:22:53 GMT
Another reason could be an uncaught exception during the initialization
code.

Michele

On Mon, 2007-06-11 at 21:32 +0530, Deepal Jayasinghe wrote:
> Hi Wang,
> Are you sure that client send the service group id , if not we will
> initialize whenever we get the request,
> 
> Thanks
> Deepal
> >
> > Hi,
> >
> >  
> >
> > I set my service scope to soapsession, but my service class gets
> > initialized by every service call. That’s not right. Consecutive
> > service calls should share the same ServiceContext. Am I right?
> > SessionContext is not created by Axis2. I also engaged addressing
> > module by following snippet inside the init function of my service class:
> >
> >  
> >
> >  
> >
> >          AxisService axisService = serviceContext.getAxisService();
> >
> >          AxisModule am = *new* AxisModule("addressing");
> >
> >         *try*{
> >
> >             axisService.engageModule(am,
> > axisService.getAxisConfiguration());
> >
> >         }*catch*(AxisFault af){
> >
> >            
> >
> >         }
> >
> >  
> >
> > Any idea about this problem? Thanks in advance.
> >
> >  
> >
> >  
> >
> > **Hailong Wang**
> >
> > National Database for Autism Research(NDAR)
> >
> > NIH/CIT/DECA (MOM CONTRACTOR)
> >
> > 9000 Rockville Pike, Bld 12A/Room 2027
> >
> > Bethesda, MD 20892
> >
> > Phone:  301-402-3045
> >
> > Fax:       301-480-0028
> >
> > Email:   wangh3@mail.nih.gov <mailto:wangh3@mail.nih.gov>
> >
> > URL:   http://ndar.nih.gov
> >
> >  
> >
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message