At 06:15 PM 27/10/99 +0900, [EMAIL PROTECTED] wrote:

When I try to execute following code, occures error message.
Do you support EJB Spec 1.1 ?
My development env. is JOnAS 1.4, EJB1.1

>From the javadoc

The RemoveException exception is thrown at an attempt to remove an EJB
object when the enterprise Bean or the container does not allow the EJB
object to be removed.

Do you have any foreign key refernces to this object that you are removing,
as this will cause the database to disallow the removal of the object.


Client partial source code :
    ...
   
CabinHome c_home = (CabinHome)jndiContext.lookup("CabinHome");
    CabinPK pk = new CabinPK();
    pk.id = 30;
    c_home.remove(pk); 
    ...
error message :
javax.ejb.RemoveException: ObjectNotFound
a
t sun.rmi.transport.StreamRemoteCall.exceptionReceivedFrom Server(Compiled Code)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Compiled Code)
        at sun.rmi.server.UnicastRef.invoke(Compiled Code)
        at com.bull.jtm.util.RemoteStub.invoke(Compiled Code)
        at com.titan.cabin.BullCabinBeanCabinHome_Stub.remove(Compiled Code)
        at com.titan.travelagent.Client_2.main(Compiled Code)    


--
Subvert the dominant paradigm
http://www.cyber4.org/members/grumpy/index.html

Reply via email to