Discussions

News: Maintaining Session With JAX-WS

  1. Maintaining Session With JAX-WS (4 messages)

    In "Maintaining Session With JAX-WS," Rama Pulavarthi shows how to use session state for web services from both the server's perspective and the client code, through the use of WebServiceContext from the Common Annotations for Java specification. From the client side, session state is managed through the use of the MessageContext.SESSION_MAINTAIN_PROPERTY (set to true) in the request process. Hello proxy = new HelloService().getHelloPort(); ((BindingProvider)proxy) .getRequestContext() .put(BindingProvider.SESSION_MAINTAIN_PROPERTY,true); int result = proxy.getCounter(); System.out.println(result); result = proxy.getCounter(); System.out.println(result);

    Threaded Messages (4)

  2. XFire, HTTP session[ Go to top ]

    If you are an XFire user, you can accomplish the same thing with the services.xml file @example session @see http://xfire.codehaus.org/services.xml+Reference @see http://envoisolutions.com/xfire/api/org/codehaus/xfire/transport/Session.html
  3. Re: XFire, HTTP session[ Go to top ]

    Yeah, all roads lead to Rome - but XFire provides a grandiose elegance. Roland SOA Kompetenznetzwerk (German) http://www.soa-competence-network.de
    If you are an XFire user, you can accomplish the same thing with the services.xml file

    @example session

    @see http://xfire.codehaus.org/services.xml+Reference

    @see http://envoisolutions.com/xfire/api/org/codehaus/xfire/transport/Session.html
  4. how to get RequestContext in xfire[ Go to top ]

    i am a xfire user. but how can i get the RequestContext in xfire. Hello proxy = new HelloService().getHelloPort(); ((BindingProvider)proxy) .getRequestContext() .put(BindingProvider.SESSION_MAINTAIN_PROPERTY,true); when cast proxy to BindingProvider,it throw ClassCastException! how to resolve? TKS
  5. Again back to about 10 years ago. AKA hot water discovery. The funny thing is that with CORBA everything is managed on the server side, leaving the client unaware. As it have to be. Guido. P.S. With a handful lines of code