aspose file tools*
The moose likes Web Services and the fly likes Why can't we get access to HttpSession object from an EJB based JAXWS endpoint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Why can Watch "Why can New topic
Author

Why can't we get access to HttpSession object from an EJB based JAXWS endpoint

Dhriti lanka
Greenhorn

Joined: Apr 02, 2007
Posts: 4
When Both Servlet based and EJB based services have access to the MessageContext Object,
Why can't we get the access the HTTPSession object from an EJB based service using:

MessageContext.getRequest(MESSAGECONTEXT.SERVLET_REQUEST).getSession();

Can someone throw some light?
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Why would an EJB (or its WS endpoint) have an HTTP session?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why can't we get access to HttpSession object from an EJB based JAXWS endpoint