This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJB 3 In Action - Ch4 Example - Eclipse/Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJB 3 In Action - Ch4 Example - Eclipse/Weblogic" Watch "EJB 3 In Action - Ch4 Example - Eclipse/Weblogic" New topic
Author

EJB 3 In Action - Ch4 Example - Eclipse/Weblogic

Arun Subramanian
Ranch Hand

Joined: Oct 30, 2002
Posts: 47
Greetings -

I am executing the EJB 3 in Action examples under a Eclipse 3.3.2/ Weblogic 10.0 / Pointbase 5.1 environment.

In my ShippingRequestProcessor MDB, if I retrieve a DB connection in the , my MDB consumes the message fine for the first time but for subsequent runs, throws the following Exception:



If I move the getConnection call to the actual business method (), everything works fine but then I am getting and closing DB connections for every invocation.

Seems like the connection can't be re-used once a message is inserted into the DB. Can someone please explain the scope of the connection and it's transaction context.

Regards,
Arun.


SCJP 1.4, SCBCD 1.3, SCWCD 5.0, SCJD B&S 2.3.1 (in progress)
 
 
subject: EJB 3 In Action - Ch4 Example - Eclipse/Weblogic