Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 3 In Action - Ch4 Example - Eclipse/Weblogic

 
Arun Subramanian
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic