myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bansi <>
Subject How to Share Session between JSF(MyFaces) and Spring
Date Thu, 17 May 2007 16:21:38 GMT

Hi Gurus
Could you please tell me 
What are the best practices to  pass Session object from JSF to Spring.  For
example lets say  LoginBean in JSF has to store userId and userRole in
Session object and then pass Session object to Spring Layer so that it can
be accessible by any spring bean

- Do you recommend using Httpsession?

- Does OpenSessionInViewFilter provides a mechanism to store userId &
userRole in session & then pass it onto spring layer


- Is their any other mechanism that you would recommend for storing userId &
userRoles into Session object at JSF Layer and then retrieve the same
Session object at Spring layer so that it can be accessible by an spring

Any pointers/suggestions will be highly appreciated


View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message