This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
 
It's not a secret anymore!