This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HttpSession Problem 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HttpSession Problem" Watch "HttpSession Problem" New topic
Author

HttpSession Problem

muthulingam Jayakanthan
Ranch Hand

Joined: Feb 27, 2005
Posts: 43
I am still not clear with following statement and which one is clear out of it

A. As per spcification, the web container ensures that distributed HttpSession objects will be stored in a database

B. Storing refrences to EJB components in the HttpSession object might NOT be supported by J2EE web container

I feel B is correct,and A is Wrong please help me to verify
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Excuse me, are the above A and B part of a mock exam (or something similar) or are these definitions you found somewhere?


Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
muthulingam Jayakanthan
Ranch Hand

Joined: Feb 27, 2005
Posts: 43
Yes,
I got some model questions from yahoo groups.
Sorry the statement regarding the web container which supports HttpSession migration. and the deployer marked as the distributable in the deployment descriptor.
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Originally posted by muthulingam Jayakanthan:
I am still not clear with following statement and which one is clear out of it

A. As per spcification, the web container ensures that distributed HttpSession objects will be stored in a database

B. Storing refrences to EJB components in the HttpSession object might NOT be supported by J2EE web container

I feel B is correct,and A is Wrong please help me to verify


You are right. As per servlet specification, page 60:

For B:


The container may choose to support storage of other designated objects in
the HttpSession, such as references to Enterprise JavaBeans components and
transactions.


For A:

Migration of sessions will be handled by container-specific facilities.
muthulingam Jayakanthan
Ranch Hand

Joined: Feb 27, 2005
Posts: 43
Hi Marco,

Thank for your reply.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HttpSession Problem
 
Similar Threads
When is a HttpSession object created by the Web Container
Mock Question on Distributed Web App
Distributed Web application question
distributable
Some Question need help