Hi ,
While i am designing my application , i came across with some doubts regarding
entity
beans .
Please go through the following .
If some where i went wrong or any concept i have taken wrongly please correct me
In the j2ee blueprints it is mentioned that for application servers
portability you should use BMP inested of CMP until EJB2.0 spec. doesn't come up .
Now i am confused regarding entity beans .
If one make a CMP entity bean which maps to one table in database.
all the synchronization between database and entity bean is taken care by EJB
server .
that means user has to concentrate on Business logic only .
so one should go for CMP .
But CMP doesn't support more than one table from database .
if someone has to use more than one table for an entity bean then use
the option is to use BMP .
In which , any way one has to make connections with database and insert into
tables .
So , why one can't write the same logic(Insert, delete , modification) into the
stateless session bean ,
which is controlled by some synchronized method of controller component ,
Then why should one use BMP ?
What are the benefits in using BMP ?
Thanks
Ritesh.
-----------------------------------------------------------------------------
This list is cross-posted to two mail lists. To unsubscribe,
follow the instructions below for the list you subscribed to.
For objectweb.org: send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe ejb-container-group".
For enhydra.org: send email to [EMAIL PROTECTED] and include
in the body of the message "unsubscribe ejb-container-group".