activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avin98 <avi...@yahoo.com>
Subject ActiveMQ 3.2.2 MDB and MessageListeners
Date Mon, 10 Jul 2006 23:50:58 GMT

I have a MDB which sends messages to a particular queue and listens on
another queue.
This happens iteratively for about 3 times, before a particular value on 1
of the queues triggers the MDB to return back.

public void onMessage(Message msg) {
        
        
        try {
            
                        
            new Service().runService();
            
            logger.info(" FINISHED MDB PROCESSING ");
            
            
            
        }
}


However while doing that I get the following error:

16:43:03,703 WARN  [TransportChannelSupport] Caught exception dispatching
messag
e and no ExceptionListener registered: javax.jms.JMSException: Error reading
soc
ket: java.net.SocketException: Connection reset
javax.jms.JMSException: Error reading socket: java.net.SocketException:
Connecti
on reset
        at
org.activemq.util.JMSExceptionHelper.newJMSException(JMSExceptionHelp
er.java:49)
        at
org.activemq.transport.tcp.TcpTransportChannel.doClose(TcpTransportCh
annel.java:513)
        at
org.activemq.transport.tcp.TcpTransportChannel.run(TcpTransportChanne
l.java:330)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at java.io.DataInputStream.readByte(Unknown Source)
        at
org.activemq.io.AbstractWireFormat.readPacket(AbstractWireFormat.java
:230)
        at
org.activemq.transport.tcp.TcpTransportChannel.run(TcpTransportChanne
l.java:313)
        ... 1 more

16:43:03,703 WARN  [BrokerContainerImpl] Got duplicate deregisterConnection
for
client: ID:aconcise-l1-1719-1152572738204-76:0
-- 
View this message in context: http://www.nabble.com/ActiveMQ-3.2.2-MDB-and-MessageListeners-tf1921600.html#a5261374
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message