activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robr <>
Subject listener "onMessage" - Inactive Channel excp
Date Wed, 17 Oct 2007 01:01:45 GMT

using 4.1.1 with client that is consuming messages from a topic using
onMessage for system that passes 400 - 600K messages per day. 

Problem - in some but not all clients to the topic, at unpredictable
intervals , we see errors ( below stack trace ) that look like the work of
the "InactivityMonitor" class. 

FAQ - in the message passing model where connections are async and the
standard JMS messageListener is in use, is this an accurate description of
threads in use?

onMessage() uses a thread
every time ActiveMQConnection dispatches work or command to the onMsg
thread, 2 other threads run , implementing "readChecker" and "writeChecker"
actions for an instance of "InactivityMonitor" class. 
the "readCheck" from its thread may throw an "InactivityIOException" that
can delegate to the listener on the transport.
in such an event, in the other thread,  the class implementing "onMessage"
will have its "onException"  invoked 

---- my stack trace from the message consumer client using "onMessage"
javax.jms.JMSException: Channel was inactive for too long.
 Exception in thread "AcitveMQ Connection Worker:
|       at
|       at
<-- rcr this looks to be ASYNC Exception
|       at$Worker.runTask(
| 2007/10/16 11:05:15 |       at

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message