wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes LocalTransactionException during and after Oracle database shutdown. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "LocalTransactionException during and after Oracle database shutdown." Watch "LocalTransactionException during and after Oracle database shutdown." New topic
Author

LocalTransactionException during and after Oracle database shutdown.

Rob Micah
Ranch Hand

Joined: Aug 30, 2011
Posts: 94
I have a JSF bean that creates a stateful session bean. The session bean has 2 dependency injected @Resources of DataSources that point to 2 different oracle databases and does nothing more than return a Connection object. Everything works fine until database 1 has its nightly shutdown. If I try to access my JSF application and connect to database 1 I get an exception. However, even after providing a different parameter so that my application connects to database 2 I still get the same exception even though database 2 never went down. I have no experience with transactions and this appears to be a transaction error. What am I doing wrong?


 
 
subject: LocalTransactionException during and after Oracle database shutdown.
 
Similar Threads
Greenhorn: JPA entitymanager is null and I don't think is suppose to be?
Persistence error at new entry from Netbeans CRUD application
Connection Multiple Databases with diynamically persistence unit names
ProgrammaticLogin in EJB - Oracle Glassfish 3.1 and JSP
Target Unreachable, 'null' returned null