Hi Raj,
This is true if you continue to use the same SoapHTTPConnection for each
Call. However, if you deploy with "Request" scope, the server creates a new
instance of your service for each invocation, so you will still be dealing
with a new object each time.
Thanks,
-Matt
> -----Original Message-----
> From: Rajagopal. V [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 22, 2001 9:19 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Maintain session
>
>
> Hi Matt,
> Thanks for the reply.
> But even if i deploy it with "Request" scope, i think
> it is still going to hold the session as the invoke
> method creates a SoapHTTPConnection anyway(for a
> Request scope) and the maitnainsession variable in
> SoapHTTPConnection has a defautl value of true(which
> is what we are doing explicitly in addressbook2)...
>
> Thanks
> Raj
>
> --- "Matthew J. Duftler" <[EMAIL PROTECTED]>
> wrote:
> > Hi Raj,
> >
> > The addressbook service is deployed with
> > "Application" scope, and the
> > addressbook2 service is deployed with "Session"
> > scope. So with the
> > addressbook service, it doesn't matter whether the
> > session cookies are
> > returned or not, you will still be dealing with the
> > same instance.
> >
> > thanks,
> > -Matt
> >
> > > -----Original Message-----
> > > From: Rajagopal. V [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 21, 2001 10:28 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Maintain session
> > >
> > >
> > > Hi all,
> > > Im just starting out on SOAP and am trying the
> > > examples. I looked at the addressbook2 directory
> > and
> > > it mentioned that its the same as addressbook with
> > > session handling included, When u look at the code
> > for
> > > addressbook2, the main difference is
> > > Call call = new Call ();
> > > SOAPHTTPConnection shc = new SOAPHTTPConnection
> > ();
> > > shc.setMaintainSession (true);
> > > call.setSOAPTransport (shc);
> > > and use this call object to invoke the target URL,
> > >
> > > But i looked at the sourecode for Call.java and it
> > has
> > > this statement in invoke method
> > > if (st == null)
> > > st = new SOAPHTTPConnection();
> > > And SoapHTTPConnection has a field called
> > > maintainSession which has a defautl value of TRUE.
> > >
> > > So it looks to me that both the addressbook and
> > > addressbook2 are doing the same except that
> > > addrssbook2 is explicitly setting maintainsession
> > to
> > > true, which is the default.
> > >
> > > Am i missing anything wrong???
> > >
> > > TIA
> > > Raj
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail
> > > http://personal.mail.yahoo.com/
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>