Transactions Questions  
Author Message
Rizwan





PostPosted: 2005-7-5 6:03:00 Top

java-programmer, Transactions Questions 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



 
Rizwan





PostPosted: 2005-7-6 6:10:00 Top

java-programmer >> Transactions Questions Anyone please? Thanks

"Rizwan" <email***@***.com> wrote in message
news:bmiye.2221$email***@***.com...
>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
>
>
>


 
Raymond DeCampo





PostPosted: 2005-7-6 8:05:00 Top

java-programmer >> Transactions Questions Rizwan wrote:
> Anyone please? Thanks
>
> "Rizwan" <email***@***.com> wrote in message
> news:bmiye.2221$email***@***.com...
>
>>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.

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

>>*) 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?
>>

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

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

HTH,
Ray
--
XML is the programmer's duct tape.
 
 
iksrazal





PostPosted: 2005-7-6 9:42:00 Top

java-programmer >> Transactions Questions 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