Getting Session from OR

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Someone was asking a while back how to retrieve the Session object that
backs the Session OR. A patch that makes this possible is in cvs and
available for your consumption now.

<b>csc_111703_1</b> - Add a method getSession() to SessionObjectRepository.
There are 2 ways to
access the session information now from the OR.
1) HttpSession session = ((ObjectRepository.SessionRepository)
ObjectRepository.getSessionRepository()).getSession();
2) HttpSession session = (HttpSession)
ObjectRepository.getSessionRepository().getState(ObjectRepostiory.HTTP_SESSI
ON);

----------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.