2008/10/16 selezovikj <[EMAIL PROTECTED]>:
>
> 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)

This exception looks like its nothing to do with that setting - it
looks to be an issue creating the initial JNDI context (in the JNDI
properties file)

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to