I want to be logging to a primary host, and in case it fails to a secondary
host. 
However log4j does not support the failover keyword. 

log4j.appender.jms.ProviderURL=failover:(tcp://localhost:61617,
tcp://localhost:61616)?randomize=false

It complains in the following way: 

log4j:ERROR Error while activating options for appender named [jms].
javax.naming.NamingException: Invalid broker URL
        at
org.apache.activemq.jndi.ActiveMQInitialContextFactory.getInitialContext(ActiveMQInitialContextFactory.java:67)
        at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
...


Is there any other way to specify in the JMS appender the primary and
secondary hosts ? 




-- 
View this message in context: 
http://www.nabble.com/Log4j-JMS-appender---failover-tp20010627s22882p20010627.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to