activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SuoNayi <suonayi2...@163.com>
Subject Re:Tomcat ActivemMQ Reconnect issue.
Date Mon, 25 Mar 2013 01:27:30 GMT
Hi, do you follow the steps listed by this page?
http://activemq.apache.org/how-do-i-use-log4j-jms-appender-with-activemq.html
Did your try log4j.appender.jms.ProviderURL= failover:(tcp://YOUR_BROKER_IP:6161)



At 2013-03-24 10:11:22,vivekg <mails2vivek@gmail.com> wrote:
>Hi, 
>
>
>We are using using Log4J (JMSAppender) + ActiveMQ for consolidating logs
>from different server instances.
>
>ActiveMQ listens on port 61616 for incoming log descriptions from various
>clients. Logs from two instances are put into ActiveMQ queue . I have added
>JMS appender to log4j properties files of client components. 
>
>Everything is working fine. The only problem is if ActiveMQ server goes
>down, the client disconnects and even if ActiveMQ  server comes up again
>within some time, the client never connects again and sends any further
>logs. (*getting javax.jms.IllegalStateException: The Session is closed*).
>
>Is there any way where log4j.appender property can be set on jms appenders
>where whenever the server is up again, it reconnects and starts sending
>messages again without doing a restart to client and establish connection
>again. 
>
>I tried *failover Transport* . But found that my Tomcat server is not
>starting , whenever i use "failover" word in my log4j.properties.
>
>Please help..
>
>Thanks & Regards, 
>Vivek
>
>
>
>--
>View this message in context: http://activemq.2283324.n4.nabble.com/Tomcat-ActivemMQ-Reconnect-issue-tp4665043.html
>Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

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