axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wang, Hailong (NIH/CIT) [C]" <wan...@mail.nih.gov>
Subject RE: Why my service class get initilized every service call?
Date Mon, 11 Jun 2007 16:51:01 GMT
Deepal,

You are right. The client does not send out the service group id in the
second service call. What should I do?  Do you have some examples on
this. Thanks very much.



Hailong

-----Original Message-----
From: Deepal Jayasinghe [mailto:deepal@opensource.lk] 
Sent: Monday, June 11, 2007 12:02 PM
To: axis-user@ws.apache.org
Subject: Re: Why my service class get initilized every service call?

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
>
>  
>

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



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

---------------------------------------------------------------------
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