0 Replies Latest reply: Jan 26, 2012 6:49 AM by Hushen Savani RSS

Session Bean unbound on Runtime

Hushen Savani Newbie

Hi Community,

 

     I have been using Hornetq-2.2.5 for my middleware application. Application is deployed on JBossAS-5.1.0-GA AppServer (Hornetq embedded in this JBossAS).  To send messages in a queue using Hornetq (using JMS Implementation), initially I have used a POJO which starts connection, creates sessions and producers, then as per discussion with Howard on following thread, we zeroed-down to a conclusion that for implementation of Hornetq - JMS, SessionBean should be used.

 

Thread:

https://community.jboss.org/message/646212

 

Now, I've been using SessionBean for this implementation. Things are going smooth. But, lately I faced following runtime exceptions:

 

Log Snippet-1:

PROCESSING_ENTITY_LISTNER_MDB ] enqueueProcessingEntity():: org.jboss.ejb3.common.registrar.spi.NotBoundExceptionorg.jboss.ejb3.common.registrar.spi.NotBoundException: Object is bound at key jboss.j2ee:ear=8messageservice.ear,jar=messageservice-base-ejb.jar,name=HornetQSessionBean,service=EJB3, but is not fully installed, instead of state: ControllerState@390b755d{Start}

2012-01-20 06:57:51,268 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) org.jboss.ejb3.common.registrar.spi.NotBoundException: Object is bound at key jboss.j2ee:ear=8messageservice.ear,jar=messageservice-base-ejb.jar,name=HornetQSessionBean,service=EJB3, but is not fully installed, instead of state: ControllerState@390b755d{Start}

2012-01-20 06:57:51,269 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.lookup(Ejb3McRegistrar.java:170)

2012-01-20 06:57:51,276 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.lookup(Ejb3McRegistrar.java:134)

2012-01-20 06:57:51,276 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.getContainerLocally(SessionProxyInvocationHandlerBase.java:410)

2012-01-20 06:57:51,276 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at org.jboss.ejb3.proxy.impl.handler.session.SessionLocalProxyInvocationHandler.getContainer(SessionLocalProxyInvocationHandler.java:87)

2012-01-20 06:57:51,276 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:193)

2012-01-20 06:57:51,276 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

2012-01-20 06:57:51,276 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at $Proxy272.enqueueEntity(Unknown Source)

2012-01-20 06:57:51,277 ERROR [STDERR] (Thread-398 (group:HornetQ-client-global-threads-847205607)) at

 

Log Snippet-2:

PROCESSING_ENTITY_LISTNER_MDB ] enqueueSuccessEntity():: org.jboss.ejb3.common.registrar.spi.NotBoundExceptionorg.jboss.ejb3.common.registrar.spi.NotBoundException: Requested value bound at name "jboss.j2ee:ear=8messageservice.ear,jar=messageservice-base-ejb.jar,name=HornetQSessionBean,service=EJB3" is not bound.

 

The "HornetQSessionBean" is well deployed on start-up time, and for few hours I am able to use it very well (i.e. Calling its methods for Hornetq Messaging). But after few hours, this session bean is unbound on runtime itself. This turned out to be a mistery. Can you please suggest pointers on the same.

 

Thank You.