Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes EJB session & Servlet session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB session & Servlet session" Watch "EJB session & Servlet session" New topic
Author

EJB session & Servlet session

Yogender Butola
Greenhorn

Joined: Jul 19, 2004
Posts: 12
Hi all
My Question is "What is the difference between a servlet session and ejb session?"
AND
How will you call an ejb session from a servlet session and how will maitain a users session using both of them?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30076
    
149

Originally posted by Yogender Butola:
Hi all
My Question is "What is the difference between a servlet session and ejb session?"
AND
How will you call an ejb session from a servlet session and how will maitain a users session using both of them?

Yogender,
1)A servlet session is also called an HTTPSession. This is commonly used to store a user's data between requests. An EJB session is used if you want to store data in a stateful session bean.

2) Why would you want to store the user's data in two places? This adds extra complexity without any benefit that I can see.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB session & Servlet session
 
Similar Threads
How to invalidate session on the basis of session ID in servlet
calling SessionEJB from Servlet
ejb
EJB calls to servlet
Session