> Jochen Vastmans wrote:
> 
> Hello,
> 
> I implemented some self made entity beans and session beans, all using
> container-managed-persistence.
> The problem i have is when i create an instance of an entitybean in a
> sessionbean,
> and change some fields of the entitybean after the creation, all in
> sessionbean, de entitybean has not been
> updated in my database...
> 
> Like i understood, the container invokes at least one ejbStore between
> the last business method on the instance and the ejbPassivate method.
> But it did nothing...
> 
> What is the problem here...
> 
> Is it possible to call the ejbStore() method direct
> (container-managed-persistence)?
> 
> A small question, do i have to pass on parameters in my deployment
> descriptor for the business methods.
> Now, i did it without parameters
> 
> {
>     Method = setCustomerName;
>     TransactionAttribute = TX_MANDATORY;
> };
> 
> Thnx
> 
> Jochen Vastmans
> [EMAIL PROTECTED]
> 
Hi,
I am not sure to understand your problem. Could you be more precise
and show some piece of your code?
However, ejbLoad is invoked at the first business method of a
transaction
and ejbStore is invoked at the commit of the transaction. In Container
managed
persistence the container write the container managed fields in the
database
before calling the ejbStore method of the bean.
Now, if you call the business method of the bean outside the scope
of a transaction the container call ejbLoad before executing the method
and 
ejbStore after.
I have already posted a mail on this subject "Container Managed
Persistence"
the August 6h on jonas-users Mailing list. You can get it in the
archives.


-- 
        Philippe

Philippe Coq  Groupe Bulll/BullSoft/OpenMaster  Phone: (33) 04 76 29 78
49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]  http://www-frec.bull.com
Download our EJBServer at http://www.bullsoft.com/ejb

Reply via email to