[jboss-user] [JBossWS] - How get MessageContex in WebService implemented as EJB

krzsam do-not-reply at jboss.com
Wed Jul 12 08:40:10 EDT 2006

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 ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957336#3957336

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957336

More information about the jboss-user mailing list