Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dhriti lanka
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would an EJB (or its WS endpoint) have an HTTP session?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic