dcsimg
Transacton handling in BMP?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Neo_Gigs
Posted On:   Sunday, May 12, 2002 08:10 PM

Hi there,


Can anyone show me how do I incorporate a JTA or transaction handling into a BMP EJB? How does the coding should looks like?


TQ

Re: Transacton handling in BMP?

Posted By:   Bozidar_Dangubic  
Posted On:   Monday, May 13, 2002 05:43 AM

neo, I am guessing here that you want to handle your own transactions from BMP Entity EJB, right? if so, first tell the container that you want to do that in the deployment descriptor. in the code, whenever you want to start a transaction, get the UserTransaction object from the context, ctx.getUserTransaction(), call begin(), do the work then call commit() or rollback() depending on the success of what you tried to do.
About | Sitemap | Contact