users@glassfish.java.net

Attempt to invoke when Ejb container is in Initializing

From: <glassfish_at_javadesktop.org>
Date: Mon, 04 May 2009 00:49:48 PDT

My application has 2 components - the Ejb and a Resource adapter.
When I start glassfish, once the resource adapter is initialized it invokes an Ejb method.
Sometimes I'm getting the javax.ejb.EJBException: Attempt to invoke when container is in Initializing.

Is there a way to retrieve the Ejb container state?

Here is the exception:

javax.ejb.EJBException: Attempt to invoke when container is in Initializing
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1193)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:202)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:120)
        at $Proxy23.updatePeerState(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)

Thanks,

Edo
[Message sent by forum member 'e3133d3' (e3133d3)]

http://forums.java.net/jive/thread.jspa?messageID=344806