This is strange....

Following is (was) the problem:

a) Creates an entity bean with PK x

b) Does a remove on this entity bean

c) Tries again to create this entity bean with the same PK x.

I used to (and others also) to get an exception doing this telling me that i'm trying 
to insert an already existing bean. What i and others thought was that the removed 
entity bean was still available in the cache and therefore not possible to recreate. 
Please note that the entity was always successfully removed from the db.

I now made a simple test to show you this and what happens??? One of following is 
correct:

1) Same problem
2) Other problem
3) It works like a dream - no errors

And the right answer is: 3) It works like a dream...

Made my test in 2 variants: First when a, b and c was called in seperate transactions 
and then when a, b and c was called in one transaction. Both variants was working.

Now i rest my case, until it creeps up again.

/Lennart

----- Original Message ----- 
From: Bordet, Simone <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 2:34 PM
Subject: RE: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN..... problem


> Ulp !
> 
> > yes, the problem exists and no, iv'e no fix on it yet.
> 
> What is exactly the problem ? I probably missed it...
> Do you have a simple test that fails ?
> 
> Simon
> 
> > I said for some weeks ago that i would take on it but there 
> > hasn't been any time for it yet :-(
> > 
> > /Lennart
> > 
> > 
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to