I have a simple MDB deployed in JBoss which listens on a queue on a remote
broker. On a clean start of both activemq (5.1.0) and JBoss (4.2.1.GA), the
interaction works well and fast. I can load it with over 1500 messages and
it consumes them quite fast. The problem occurs when I redeploy the MDB
jar. At that point, messages can be added to the queue, but take
approximately 20 seconds to become consumed by the MDB. On the admin screen
I can see the message(s) in a pending state for those 20 seconds. They DO
EVENTUALLY DELIVER, but it appears as if it is waiting for a timeout on some
old connection. Restarting either activemq or jboss alone does not remedy
the situation, it requires a restart of both simultaneously.
I have tried various rar configurations as well as activiationconfigs, but
can't seem to gain anything. My current setup basics to follow....
MDB Config
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName =
"destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "clientId", propertyValue =
"SOARouter"),
@ActivationConfigProperty(propertyName = "destination", propertyValue =
"activemq/queue/SOAInQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue
= "Auto-acknowledge") })
@ResourceAdapter("activemq-rar-5.1.0.rar")
rar's ServerUrl: tcp://remoteHost:61616
jms-ds.xml relative pieces
activemq/QueueConnectionFactory
activemq-rar-5.1.0.rar
javax.jms.QueueConnectionFactory
JmsXARealm
activemq/queue/SOAInQueue
jboss.jca:service=RARDeployment,name='activemq-rar-5.1.0.rar'
javax.jms.Queue
PhysicalName=activemq/queue/SOAInQueue
Any guidance would be appreciated.
--
View this message in context: http://www.nabble.com/20ish-second-delay-after-MDB-Redeploy-on-JBoss-tp18834110p18834110.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.