In the case where your DB is shared amongst other application, the container, to be sure that the data contained in the entity beans is in sync with the DB, performs an EJBLoad (a sync with the DB) each time (before it) a request to a bean business method is performed.
If the DB is only used by your EJB server, then this one should provide
you a way to specify that case.
In WebLogic for example, in the deployment descriptor of your entity
bean, you can specify
dbIsShared
false
Note: in the other way, the container does not know when the data in
the bean has been modified and then it suppose that each time a business
method has been call, the data has been modified and then perform an EJBSTORE.....
Which is also time consuming...
In the case of Weblogic, you can define a method, generaly called isModified()
that returns a boolean to inform the container about the modification of
bean data (to know if it has to perform an update in the database).
Please check your EJB server documentation for these functionalities that greatly improve the performance
Daniel
Manisha Umbarje wrote:
Hi,I am new on this EJB interest group.. I don't know if this issue has
already been discussed. I have been trying to access Bean Managed Entity
Bean's remote methods from the servlet. I have implemented the method
ejbFindByName() which returns Enumeration of Primary Key class of the
Entity Bean and then I try to execute different methods on this object.
But when I do so, I observed in the trace file of my application server
that container is making calls to ejbLoad() every time I try to call
remote method. It seems that Container is trying to synchronize Bean's
state to DB state.That makes my application very slow.
Is this way it should behave or am I missing something ?
Manisha
===========================================================================
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".
begin:vcard n:De Luca;Daniel tel;fax:+ 32 2 714 42 22, +1-877-359-5506 (toll-free) tel;work:+32 2 714 42 64 (direct), +1-877-359-5506 (toll-free) x-mozilla-html:FALSE url:http://www.ficsgrp.com org:<center><a href="http://www.ficsgrp.com"><img SRC="http://www.ficsgrp.com/images/ficstop.gif" ALT="Visit FICS" NOSAVE BORDER=0 height=49 width=150></a></center>;<center>Research & Development</center> adr:;;Excelsiorlaan, 87;Zaventem;Brussels;B-1930;Belgium version:2.1 email;internet:[EMAIL PROTECTED] title:</a><center>Technology Consultant</center> note:<P><center><a href="http://www.bejug.org"><IMG SRC="http://www.bejug.org/images/gobejug.gif" ALT="Member of the Belgian Java User Group" HEIGHT=31 WIDTH=88></a><A HREF="http://www.politik-digital.de/spam/"><IMG SRC="http://www.politik-digital.de/spam/en/download/spam_h90.gif" ALT="Vote against SPAM!" BORDER="0" WIDTH="92" HEIGHT="39"></A></center><P><B>VoiceMail/Fax (toll-free): 1-877-359-5506 <br>Private EMail: <a href=mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]</a></B><p> fn:</a><center>Daniel De Luca</center> end:vcard
