I've got an application that was working with Couriers until we swapped our messaging
from JbossMQ to JbossMessaging. The code looks like:
Epr replyEpr = // a valid Epr
MyResult result = // a valid MyResult
Courier cur = CourierFactory.getCourier(replyEpr);
Message esbMessage =
MessageFactory.getInstance().getMessage(MessageType.JAVA_SERIALIZED);
esbMessage.getBody().add(MyResult.class.getName(), result);
cur.deliver(esbMessage);
It works for a while but then throws:
org.jboss.soa.esb.couriers.CourierServiceBindException: Failed to get JMS Session from
pool.
at org.jboss.internal.soa.esb.couriers.JmsCourier.getJmsSession(JmsCourier.java:162)
at
org.jboss.internal.soa.esb.couriers.JmsCourier.createMessageProducer(JmsCourier.java:340)
at org.jboss.internal.soa.esb.couriers.JmsCourier.deliver(JmsCourier.java:186)
Caused by: org.jboss.internal.soa.esb.rosetta.pooling.ConnectionException: Could not
obtain a JMS connection from the pool after 30s.
at
org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.getSession(JmsConnectionPool.java:207)
at org.jboss.internal.soa.esb.couriers.JmsCourier.getJmsSession(JmsCourier.java:156)
Is there any information around on differences between JbossMQ and JbossMessaging for
Couriers?
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174648#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...