Question about ejbRemove and bmp

Advertisement
hi,
do I need to implement all of the ejbXxx methods in a bmp, what I see is that I call findByPrimaryKey on a bmp and then remove() but if then I try to access it again it's still there. My ejbRemove is empty at the moment, but I thought that the container would anyway remove the instance of the bean it had loaded so I am a bit confused. Do I HAVE to check in the db if the row is still there and in case throw ObjectNotFoundException in my ejbFindByPrimaryKey? Is this the only way to know the bean has been removed? Doesn't the container do anything with the bean when I call remove() (either on the local or home interface)
thanks,
A.
Advertisement

Replay

didn't see there already was a reply
http://forum.java.sun.com/thread.jsp?forum=13&thread=447215&tstart=0&trange=15