This content has been marked as final. Show 3 replies
CardM wrote:Those are at least two isolated transactions. Everything up to and including sending a message and everything upon receiving one. Likely the transactions happen in two different and isolated containers too.
I used container managed transaction. And i wanna understand when a XA transaction is considered "started" and when it is "ended" ?
suppose, the application flow is:
from JSF GUI -> Managed Bean -> JMS -> EJB -> Database.
This is tough material dude, you're not going to get there by guessing, hacking some code and asking open-ended questions in a forum. I highly advise you to read into JTA (Java Transaction API), get a very good book about EJB technology (I recommend 'Enterprise Javabeans 3.1') and get a very good book about JMS (can't really advise anything there). Google is your friend, and so are the Amazon book reviews.