Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes Using MDBs with Entity Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Using MDBs with Entity Beans" Watch "Using MDBs with Entity Beans" New topic
Author

Using MDBs with Entity Beans

Sergiu Truta
Ranch Hand

Joined: Dec 16, 2003
Posts: 121
In case the MDB uses some entity beans and this process is using CMT, this message will be displayed on the Server Output(If the transaction level is 'NotSupported' the message is not displayed):
"[LocalTxConnectionManager$LocalConnectionEventListener] prepare called on a local tx. You are not getting the semantics you expect!"
It means there is more than one participant in a transaction where at least
one of the participants only supports local (1pc, non xa) transactions.
Failures during the commit process will result in inconsistent results.
This is most likely to happen if you use jms and db access in the same tx.
Ok, my question is how can I use the entity beans inside a MDB's onMessage() method and not get this warning message?
Thanks for your ideas.


...watch me...as I'm walking the path...
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Which vendor's container are you using? Websphere, IPlanet, JBoss ...
Sergiu Truta
Ranch Hand

Joined: Dec 16, 2003
Posts: 121
I'm using JBoss 3.0.0 and Oracle 8i.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Using MDBs with Entity Beans
 
Similar Threads
Mock Exam Questions
few questions on entity beans
Passed SCBCD 5.0 :)
Session & Entity Beans
My Study Notes