Transactions Questions

R

Rizwan

I have been reading about transactions in java and have some questions:

*) Which is mostly used: Container-managed transactions (CMT) or
Bean-managed transactions (BMT)? I dont have Entity Bean in my application.
*) Is this statement true: Use JTA only when the transaction involves more
than 1 database else use JDBC? If yes then how would you deal with this?

It would be nice if somebody points to a detailed tutorial about
transactions.

Thanks
 
R

Raymond DeCampo

Rizwan said:
Anyone please? Thanks

If you have no entity beans then the question is moot.

I have not heard this. I would use JTA in all cases.

HTH,
Ray
 
I

iksrazal

Take a look at the Hibernate/Spring combo as a popular alternative to
EJB/JTA. The same transaction sematics apply to each. EJB 3.0 when it
arrive will be largely based on Hibernate. The hibernate docs are very
good and worth a look.

HTH,
iksrazal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top