Can you tell me How to loading sessions.xml in servlet

Can you tell me How to loading sessions.xml in servlet

Getting a session in a servlet is no different than in any other environment except that you need to be careful which classloader you pass to the SessionManager and correctly configure what to do if your application is reloaded. If you use the oracle.toplink.util.SessionFactory introduced in 10.1.3.1 you don't have to worry about these details--it uses the correct settings. The SessionFactory greatly simplifies the code required to get a session or unit of work. It's well documented in the SessionFactory javadoc.
If you do use SessionFactory beware there is a bug when running in a JTA environment and there's no transaction started. Doug posted a work around in his blog[1].
--Shaun
[1] http://www.jroller.com/page/djclarke/20060412

Similar Messages

Maybe you are looking for

  • How to pass a form variable from page to page

    I have a series of 4 forms on 4 pages that update a database. A variable from one of the forms (doesn't matter which one, if it's easier one way over another, let's go that way) is passed to the last page, where a PayPal button will appear based on t

  • SLA and traffic light in CRM_DNO_MONITOR

    Dear Service Desk gurus. 1)In CRM_DNO_MONITOR where are traffic light and corresponding column "Valid to". How does the traffic color and "Valid to" date are calculated? Is it customizable and connect to message Priority? 2) When SLA is configured fo

  • Can you backup your iphone in recovery mode?

    I updated my iPhone 4 and now its stuck in recovery mode (has the connect to itunes screen) and I connected it to itunes and its saying i have to restore my phone! I haven't backed up my phone in sooo long and i have alot of important pictures and co

  • Troubleshooting hard drive problems

    I've read through the "probook won't boot" threads but I have a question.  I have just tried re-seating the harddrive in my Probook 4530s and it did not help.  During the startup test it says the drive is not found.  I realize this could be caused by

  • Not giving paid for next business day service

    Hi Has anybody got a number I can phone in the uk for customer complaints? My nine month old thinkpad screen went. Company paid for extra next business day service for repairs. At first they said they didn't have a replacement and it would take an un