Hi All:
I would like to know how do CMB entity bean+container does
transcation effectively with java object to do the same . I am in a stage to
learn this before i really go to do EJB in my project.
Person X and Y has same account , concurrently they are doing transcations ,
X is depositing 10 dollars , Y is taking 20 dollars.
Java Object:
I synchronize the method (lock) when it does the transaction
and let us say i am calling stored procedure / sql from that method.So i am
making sure that transaction can be done for one user and is exception is
thrown i rollback the stage.I know that i have to write code for this.
CMB EntityBean:
I use entity bean that has container managed fields mapping to
my account and , the synchroniztion of the updation is taken by container
and rollback too.
I too know that the change in DB, can reflect in the entity
bean , so client will get always updated data's from DB.
Question:
Ultimatly , as a programmer view it does the synchronize locking and
roolback , keep uptominute persistent data. Otherthan this can be any major
advantage on using ENtity bean .What are the rolls of container while doing
transactions. I read lot of articles conveying ' transactions can be handled
by an external transaction-processing monitor' container takes care that ,
devleoper can focus on business logic ' what this does exactly means, how
EJB more efficient in doing transaction than java objects .
Really appreciate if anyone explain me the basic ideas. If anyone lists the
benefits of using EJB to do efficient transactional operartional , is
greatly appreciated.
Thanx much
Asha
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".