I have been (should that be bean?) trying out some of the examples from Mr.
Monson Haefel's book with JRun 3.0 on NT, using JDK1.2.1.

My ShipBean works fine with Container Manager Persistance, but when I
replace it with the code for BMP, it acts oddly.   (The client code is
unchanged between the CMP and BMP tests).

I can add Ship entities and find them by Capacity (an attribute of a ship)
but business and remove methods often do not work.  I say often because
if I create a new ship and delete it straight away,  it all works fine.

However if I then try to delete another existing ship, the ejbRemove()
method is invoked on a bean that has an id (the key field) which is the same
as the previously deleted bean, even though on the client side the Ship
instance on which I called ship.remove() was definitely the right one.

Also if I call business methods like setTonnage() on an bean that has been
successfully found by primary key, the ejbStore() method is called on a bean
with an id of 0,  which is certainly not the id used in the primary key
object to find the ship.

I am pulling my hair out over this,  I think it something that I have done
with JRun rather that a problem with the source code from the book.

Any help welcome!

Guy Roberts,
Nottingham,
UK.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
  • Re: aesterline
    • Guy Roberts

Reply via email to