ejb

Status
Nicht offen für weitere Antworten.

Bleiglanz

Gesperrter Benutzer
If the EJB container needs to synchronize the instance variables of an entity bean with the corresponding values stored in a database, it invokes the ejbLoad and ejbStore methods. The ejbLoad method refreshes the instance variables from the database, and the ejbStore method writes the variables to the database. The client may not call ejbLoad and ejbStore.

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.
immer dann wenns nötig ist, das macht der Container für dich...
 
G

Guest

Gast
...und manchmal auch, wenn es gar nicht nötig ist, wodurch EJB's
so langsam sind. Selbst, wenn man es abfängt, die Methodenaufrufe
kosten viel Zeit.
 
Status
Nicht offen für weitere Antworten.

Neue Themen


Oben