tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu George" <manu.t.geo...@gmail.com>
Subject Re: EJBHome remove method.
Date Fri, 03 Nov 2006 11:05:44 GMT
Hi thej,
            If you call the remove object you invalidate the reference
to an EJB held by the home object. That is why you are getting this
exception. You need to lookup a new instance of the object from JNDI
now.

Thanks
Manu

On 11/3/06, Thej <thejkirans@amritatech.com> wrote:
>
> Hi,
>
>      I am using StateLessSessionBeans.
>
>      when i call the <home>.remove() method and then i try to call any ejb
> method the openejb is throwing an exception.
>
> java.rmi.NoSuchObjectException: reference is invalid
>         at
> org.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:241)
>         at
> org.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:87)
>         at $Proxy70.getEncounterDetails(Unknown Source)
>
>  Y is this happening?
>
> thej
>

Mime
View raw message