Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the difference between ejbstore and ejbload?
ejbLoad method: 
This method is called when it is necessary to synchronize the bean with data from the database. This will most likely trigger a SELECT to occur. The ejbLoad is triggered when the client requests to use the bean, forcing activation to happen, thus moving it to the ready pool. 
 
ejbStore method: 
This method is called when it is necessary to synchronize the bean data with the database. This will most likely trigger an UPDATE to occur. The ejbStore is triggered when the bean is no longer being used by a client, and the container decides to move the ready instance back into the pooled state.nullejbLoad method:ejbStore method: