7 Replies Latest reply on Apr 26, 2007 6:09 AM by snair33

    How get MessageContex in WebService implemented as EJB

    krzsam

      I use JBoss.4.0.4.GA Patch1

      I want to implement "session" managing with webservices, using JbossWS. My webservices are implemented as Stateless EJB-s, and I want to use wsaddressing for this purpose. But I have some problems:
      - there is no such static method MessageContext.getCurrentContext() (I use javax.xml.rpc.handler.MessageContext from jboss-ejb3.jar)
      - call to ctx.getMessageContext() ( ctx is @Resource private SessionContext ctx;) throws

      java.lang.RuntimeException: NOT IMPLEMENTED
      at org.jboss.ejb3.BaseSessionContext.getMessageContext(BaseSessionContext.java:330)
      


      how should I properly obtain MessageContext object ?