I am new to EJB. I have a doubt about
Entity beans. When i use bean managed
persistence, do I have to expilcitly call
ejbStore() method after modifying a field of entity
bean or the container manages this task?
-
doubt about Entity Bean (3 messages)
- Posted by: Sujit Nene
- Posted on: April 16 2001 10:13 EDT
Threaded Messages (3)
- doubt about Entity Bean by vinay soni on April 16 2001 11:57 EDT
- doubt about Entity Bean by vinay soni on April 16 2001 12:01 EDT
- doubt about Entity Bean by babu Lakkamananeni on April 16 2001 12:47 EDT
-
doubt about Entity Bean[ Go to top ]
- Posted by: vinay soni
- Posted on: April 16 2001 11:57 EDT
- in response to Sujit Nene
Hi,
if your ben is CMP then container will take care of it
it automatically calls it prior to PASSIVATION and
whenever it do synchronisation operation.
cheer -
doubt about Entity Bean[ Go to top ]
- Posted by: vinay soni
- Posted on: April 16 2001 12:01 EDT
- in response to Sujit Nene
hi,
In continution to previous , if you are using BMP
then definitely you have to call EJbstore() for
synchronisation with database
cheer -
doubt about Entity Bean[ Go to top ]
- Posted by: babu Lakkamananeni
- Posted on: April 16 2001 12:47 EDT
- in response to Sujit Nene
Hi,
Please go through this .... This is for BMP.
If a business method is associated with a transaction, the container invokes ejbLoad
before the business method executes. Immediately after the business method
executes, the container calls ejbStore. Because the container invokes ejbLoad and
ejbStore, you do not have to refresh and store the instance variables in your
business methods-- the container performs these functions for you.
babu.