Philippe,

Before I emailed the users group and before I spoke with you, I suspected
that the 
cause of my problems was transactions.  So, I did an experiment.
I tried the following:

- start a transaction
- remove an entity bean
- close the previous transaction
- start a new transaction
- findByPrimaryKey (the same bean just removed):  the bean is found!
- close transaction

In this case, the bean just deleted in a separate transaction was found in
the next
transaction.  

We are using Jonas 1.6.1.  So, I don't know if this is a problem in later
versions.  From you email below and my current experience, it appears that
this 
has been an ongoing problem from version to version.  At this point, at
least
I know that if I upgrade to 2.0.2, I can use transactions to get around the
problem.
 
--
Duggan Dieterly                                    Phone:  (970) 898-7906
Software Design Engr.                                Fax:  (970) 898-6376
Hewlett-Packard Co.                                
 

-----Original Message-----
From: Philippe Durieux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 03, 2000 1:02 AM
To: DIETERLY,DUGGAN (HP-FtCollins,ex1)
Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: Re: Remove Bug in Jonas??


"DIETERLY,DUGGAN (HP-FtCollins,ex1)" wrote:
> 
> I am experiencing what I think is a bug in Jonas.  When I try to remove an
> entity bean, the
> bean is removed from the database, but Jonas still thinks the bean exists.
> Below is
> what I found on the mailing lists about this same problem.  Has anyone
> experienced this?
> Has anyone solved this problem?
> 

I have check this in jonas 2.0.2 sources: There is a known bug about
remove
only in this configuration 

- start a transaction
- remove an entity bean
- findByPrimaryKey(this bean) : you still find it!
- close transaction

Note that if you are not inside a transaction, it works.
If you use another finder method (not "findByPrimaryKey), it works too.
This little problem has been introduced when we fixed another bug about
a memory leak.
I cannot see if you are inside a transaction or not in your case ?
-- 
Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]
-> Download our EJBServer at http://www.evidian.com/ejb <-
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to