File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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.


SCJP 1.4, SCBCD 1.3, SCWCD 5.0, SCJD B&S 2.3.1 (in progress)
It is sorta covered in the JavaRanch Style Guide.
subject: EJB 3 In Action - Ch4 Example - Eclipse/Weblogic
Similar Threads
MDB Transaction Propogation.
getting weblogic to add jar to classpath (axis.jar)
java.rmi.RemoteException: EJB Exception: ; nested exception is:
ASSERTION FAILED Error while retrieving EntityManager instance In JPA
OOM on weblogic 10.3.2 JVM@check_alloc