1 Reply Latest reply on Oct 27, 2012 12:51 AM by Tom Cunningham

    JBoss ESB embedded in JBoss SOA 5.3 with remote HornetQ

    Hitz Jain Newbie

      Team,

      I am looking to try out few things and wanted to experiment and see if this would work.

       

       

      Setup a remote HornetQ server with some pre-defined queues.

      Remove the hornetq installation from the jboss soa package. Since Jboss SOA comes with many modules how do I go about setting it up to use a remote jms provider.

       

      Any info around this would be useful to start this with.

       

      I see the server fails to startup trying to connect to the hornetq server stating ConnectionFactory not bound.

       

       

      2012-10-26 11:29:39,830 DEBUG [org.jboss.soa.esb.listeners.message.MessageAwareListener] (Thread-35) Courier Exception

      org.jboss.soa.esb.couriers.CourierException: Unable to create Message Consumer

      at org.jboss.internal.soa.esb.couriers.JmsCourier.internalPickupPayload(JmsCourier.java:509)

      at org.jboss.internal.soa.esb.couriers.JmsCourier.pickupPayload(JmsCourier.java:477)

      at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup(JmsCourier.java:470)

      at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:228)

      at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:204)

      at org.jboss.soa.esb.listeners.message.MessageAwareListener.waitForEventAndProcess(MessageAwareListener.java:311)

      at org.jboss.soa.esb.listeners.message.MessageAwareListener.doRun(MessageAwareListener.java:267)

      at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run(AbstractThreadedManagedLifecycle.java:115)

      at java.lang.Thread.run(Thread.java:662)

      Caused by: org.jboss.soa.esb.couriers.CourierServiceBindException: Failed to get JMS Session from pool.

      at org.jboss.internal.soa.esb.couriers.JmsCourier.getJmsSession(JmsCourier.java:167)

      at org.jboss.internal.soa.esb.couriers.JmsCourier.createMessageConsumer(JmsCourier.java:592)

      at org.jboss.internal.soa.esb.couriers.JmsCourier.internalPickupPayload(JmsCourier.java:501)

      ... 8 more

      Caused by: javax.naming.NameNotFoundException: ConnectionFactory not bound

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

      at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

      at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

      at org.jnp.server.NamingServerGuard.lookup(NamingServerGuard.java:76)

      at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)

      at sun.rmi.transport.Transport$1.run(Transport.java:159)

      at java.security.AccessController.doPrivileged(Native Method)

      at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      at java.lang.Thread.run(Thread.java:662)

      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)

      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)

      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)

      at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)

      at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)

      at $Proxy433.lookup(Unknown Source)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:750)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)

      at javax.naming.InitialContext.lookup(InitialContext.java:392)

      at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.getFactoryConnection(JmsConnectionPool.java:328)

      at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.internalGetSession(JmsConnectionPool.java:229)

      at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.getSession(JmsConnectionPool.java:206)

      at org.jboss.internal.soa.esb.couriers.JmsCourier.getJmsSession(JmsCourier.java:165)

      ... 10 more

      2012-10-26 11:29:39,831 WARN  [org.jboss.soa.esb.listeners.message.MessageAwareListener] (Thread-35) Error processing courier, backing off for 1000 milliseconds

      2012-10-26 11:29:39,831 INFO  [org.jboss.soa.esb.listeners.message.MessageAwareListener] (Thread-35) State reached : true

       

       

      Any suggestions?