axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nayana Hegde" <nayana.he...@gmail.com>
Subject Re: Stateful Web Service
Date Tue, 21 Mar 2006 09:32:23 GMT
Hi Prashanth,

  Can you let me know as to how to retreive the HTTPSession from
ServletEndpointContext ?

Thanks and Regards,
Nayana


On 3/21/06, prashanth shivakumar <prashanth.shivakumar@gmail.com> wrote:
>
>
> This is how i have done it..
> Some of the people over in this forum suggested the same..
>
> Make your servlet webservice  endpoint interface implement
> javax.xml.rpc.server.ServiceLifecycle interface
> Than you need to define init() and destroy() methods.
> Using ServletEndpointContext you can retrieve HTTPSession and thats what
> you need to maintain state.
> Implement your backend logic in stateless EJBs
>
> given below is a small snippet from my servlet endpoint
>
> Cheers
>
> ========================
>
> javax.xml.rpc.server.ServletEndpointContext servletContext;
>
>  /**
>   *
>   */
>
>  public void init(Object context) {
>    servletContext = (javax.xml.rpc.server.ServletEndpointContext) context;
>
>  }
>
>  /**
>   *
>   */
>  public void destroy() {
>   servletContext = null;
>  }
>
> ====================================
>
>
> On 3/21/06, Jyotishman Pathak <jyotishman@gmail.com> wrote:
> >
> > The WSRF specs provide a standard way of implementing/interacting with
> > stateful Web services. I recommend having a look at:
> > http://ws.apache.org/wsrf/
> >
> > - Jyoti
> >
> >
> >
> >
> > On 3/20/06, Nayana Hegde <nayana.hegde@gmail.com > wrote:
> > >
> > >  Hi,
> > >
> > >   Is it possible to implement a stateful web service using Axis? If
> > > yes please do let me know the details.
> > >
> > > Thanks and Regards,
> > >  Nayana
> > >
> >
> >
> >
> > --
> > Jyotishman Pathak
> > WWW: http://www.cs.iastate.edu/~jpathak
> >
>
>

Mime
View raw message