Hi Guys,

I have a JMS implementation for my project using JBoss 3.0.2, JDK 1.4.1

When an external client closes the connection to a particular Queue hosted by JBoss, you can see the following exception being thrown in the Jboss console. I am wondering if there is any way to capture this inside a bean inside JBoss, so as to know when the external client has gone down.
I know I can implement an exception listener for a queue listener but that would only work for an external client which loses itz connection to the queue, when the queue/jboss goes down. But how do i implement tis listener inside JBoss. If i could capture this exception somehow in my bean, it would make life much easier.

09:17:04,650 WARN  [OILServerILService] Connection failure (1).
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
        at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
        at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2316)
        at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
        at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
        at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2604)
        at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
        at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:205)
        at java.lang.Thread.run(Thread.java:536)

 

Thanks in advance,

Dushy

Reply via email to