• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpSession Problem

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Excuse me, are the above A and B part of a mock exam (or something similar) or are these definitions you found somewhere?
 
muthulingam Jayakanthan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marco,

Thank for your reply.
reply
    Bookmark Topic Watch Topic
  • New Topic