Hi,
I have quite a few problems with the CTS
BMP entity bean, and recent CVS:
The basic problem is that the ejbCreate()
method removes all entries from the
database table before doing the create.
But beans that have been removed in the
database can still exist in the entity
cache. This means that a create will
recreate the bean in the database, but
when the created instance is added to the
instance cache, a IllegalStateException
"INSERTING AN ALREADY EXISTING BEAN" is
thrown.
The home method I suggested does not help
this problem, and the right thing to do
would probably be to let the test
initialization remove all entries using
home.findAll() and remote.remove().
If OK with you, I will change the BMP
implementation as follows:
- No implicit database clear here.
- Database table will be automagically
created whenever needed, if it does
not exist.
- A few other minor changes to the
persistence handling.
I do not know for sure, but I would
guess that the removal of the database
table clearing in ejbCreate() could
break some tests that depend on it.
Best Regards,
Ole Husgaard.
Peter Braswell wrote:
>
> All,
> Just to give an update:
> I thing the CTS is complete through Stateless and
> Stateful session beans.
>
> I checked in a bunch of BMP stuff yesterday/tonight
> which brings BMP to near completion (I think!) I'm
> going to review the spec and the tests to make sure.
>
> Outstanding is CMP (which shouldn't take too long) and
> some stuff conerning transactions.
>
> Big issue: we need to support IIOP!!
>
> Please let me know if you find any problems w/JCTS!!!
>
> happy hacking,
> peter
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/