File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Why can't we get access to HttpSession object from an EJB based JAXWS endpoint
 
Similar Threads
Home & Remote Interfaces
Retrieving Stateful Session Bean
distinctions between Stateless and Stateful bean
HttpSession & Session bean
Why Collections.sort is using merge sort insteadof quicksort?