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:[EMAIL PROTECTED] 
Sent: Monday, June 11, 2007 12:02 PM
To: [email protected]
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:   [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> URL:   http://ndar.nih.gov
>
>  
>

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to