This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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?
 
 
subject: Why can't we get access to HttpSession object from an EJB based JAXWS endpoint
 
Similar Threads
HttpSession & Session bean
Retrieving Stateful Session Bean
distinctions between Stateless and Stateful bean
Home & Remote Interfaces
Why Collections.sort is using merge sort insteadof quicksort?