dcsimg
invoking ejbStore method
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   thanuksha_kaviratne
Posted On:   Tuesday, August 23, 2005 02:45 AM


ejbStore method is called whenever bean method is invoked. therefore when i get all records from a table thru a finder method( lets say there are 500 records) the ejbStroe() method is invoked 500 times. therefore the system gets slow. is there a way to stop calling ejbStroe method when calling ejb finder methods.

Re: invoking ejbStore method

Posted By:   Saurabh_Narain  
Posted On:   Wednesday, August 24, 2005 06:51 AM

Hi,

In case of CMP entity beans it is the container which calls these callback methods ejbStore(),ejbLoad() etc..
The developer doesn't have control over the calling of these callback methods.
In your case I think that writing BMP entity bean may solve your problem but your code will increase very much and you need to take care of issues like transaction etc...

Also there is something wrong with your database design.Getting 500 records for a finder is too much.
About | Sitemap | Contact