activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <hi...@hiramchirino.com>
Subject Re: Logger To report failover activity
Date Tue, 18 Jul 2006 14:53:47 GMT
You can use the
    ActiveMQConnection.addTransportListener(TransportListener
transportListener)
method to listen for the transportInterupted() and transportResumed() events
to know when the transport has been disconnected and reconnected.



On 7/18/06, Hugo V <aerosteak@hotmail.com> wrote:
>
>
> Hello,
>
> I have a simple request: When I use the Failover transport I would like to
> have a WARNING message when the connection with the server is broken. If I
> don't turn the DEBUG level on 'FailoverTransport' class there is no
> messages
> and no sign of activity…
>
> The problem is that the 'FailoverTransport' DEBUG is a bit verbose and
> there
> is a Exception Stack trace (once in a while) when doing a proper
> disconnection (see log file below).
>
> Is there another Logger that I can active? or is it possible to add a
> logger
> in a future build?
>
> //------------------------------
>
> org.apache.activemq.transport.failover.FailoverTransport; Transport
> failed,
> starting up reconnect task; ActiveMQ Transport:
> tcp://localhost/127.225.38.5:7670
> java.io.EOFException
>   at java.io.DataInputStream.readInt(DataInputStream.java:397)
>   at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java
> :274)
>   at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:142)
>   at java.lang.Thread.run(Thread.java:536)
> --
> View this message in context:
> http://www.nabble.com/Logger-To-report-failover-activity-tf1960726.html#a5378899
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message