File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 3 In Action - Ch4 Example - Eclipse/Weblogic
 
Similar Threads
java.rmi.RemoteException: EJB Exception: ; nested exception is:
ASSERTION FAILED Error while retrieving EntityManager instance In JPA
MDB Transaction Propogation.
OOM on weblogic 10.3.2 JVM@check_alloc
getting weblogic to add jar to classpath (axis.jar)