Hi,
Please look the following code:
My Client Code:
According the MF notes, the find method returns a detached object. Now, I am trying to delete a detached object. so, The system must throw an exception saying that the object is detached.
If I comment out the find method, I am getting the following exception:
Exception in
thread "main" javax.ejb.EJBException: java.lang.IllegalArgumentException: Removing a detached instance bala.persistent.Employee#11
Imust get the same exception if I uncomment the find exception.
Please anybody explain this.
Thanks&Regards, Krishna.
SCJP1.4, SCWCD1.4, SCBCD 5.0