log4j - Jndi context addToEnvironment has no effect

2009-01-29 Thread selezovikj
I have a JmsQueueAppender that logs messages to an ActiveMQ broker on a given queue. I also have a jndi.properties file in which I do NOT specify the provider.url value, because that value can vary depending on a flag. In my JmsQueueAppender, the jndi context is initialized using the default

Re: log4j - Jndi context addToEnvironment has no effect

2009-01-29 Thread selezovikj
the PROVIDER_URL? Joe Free ActiveMQ user guide @ http://www.ttmsolutions.com selezovikj wrote: I have a JmsQueueAppender that logs messages to an ActiveMQ broker on a given queue. I also have a jndi.properties file in which I do NOT specify the provider.url value, because that value

JmsAppender - multiple java.naming.provider.url

2009-01-27 Thread selezovikj
I am logging messages using log4j to a queue on an ActiveMQBroker. Now, I want dependent on whether a flag is on to be able to log to a broker specified by let's say: java.naming.provider.url = tcp://machineA:61616, and if it is off to log to java.naming.provider.url = tcp://machineB:61616 When

Commons-logging conflict with failover

2008-11-04 Thread selezovikj
I am using log4j to send logging events to a topic on an ActiveMQ broker. I use the failover transport to specify a secondary host and automatic reconnection. When the commons-logging.jar is in the classpath the failover transport is blocking. Has anyone experienced this ? Does commons-logging

Re: Commons-logging conflict with failover

2008-11-04 Thread selezovikj
Yes, I am using the JMS appender and in the jndi.properties file I specify failover:(tcp://localhost:61617) as the value for the providerURL. I have a simple client logging messages using the JMS appender. Commons-logging is logging to a jms appender when I am NOT using the failover transport.

Re: Commons-logging conflict with failover

2008-11-04 Thread selezovikj
If so, does this mean that by default, with the failover transport commons-logging logs to where it tries to connect ? James.Strachan wrote: 2008/11/4 selezovikj [EMAIL PROTECTED]: So failover tries to log that it is connected, but it cannot log since it is not connected. But, my

Re: Commons-logging conflict with failover

2008-11-04 Thread selezovikj
://www.scriptinginjava.net selezovikj wrote: I am not sending ActiveMQ logging information to the JMS appender. __ Logger messageLogger = Logger.getLogger(MSGSTATS); messageLogger.info(Client logs to 61617

Re: Commons-logging conflict with failover

2008-11-04 Thread selezovikj
System.out.println(before declaration); final Log log = LogFactory.getLog(MSGSTATS); System.out.println(after declaration); after declaration is never printed out. So commons-logging initializes a Log, which initializes log4j by reading the log4j.properties file, then in the log4j.properties

Re: Commons-logging conflict with failover

2008-11-04 Thread selezovikj
information to the JMS appender right? Otherwise its catch 22; you can't connect until you've logged and can't log until you've connected. 2008/11/4 selezovikj [EMAIL PROTECTED]: Yes, I am using the JMS appender and in the jndi.properties file I specify failover:(tcp://localhost:61617) as the value

Re: Failover transport

2008-10-28 Thread selezovikj
and removing of jar files, I saw that the problem causing this is the commons-logging-1.1.jar file. When I add that jar file the failover transport is useless. Any idea why this is so ? selezovikj wrote: Jconsole shows the following stack trace: Name: main State: BLOCKED on [EMAIL

Re: Failover transport

2008-10-28 Thread selezovikj
YES, I am using the log4j JMS appender. That is mentioned in my first message for this thread. In my simple client, I am using the log4j JMS appender, which appends messages to a JMS topic and it WORKS ! It doesn't give any problems. The problem occurs once I include the commons-logging JAR.

Re: Failover transport

2008-10-24 Thread selezovikj
I saw that in the Apache ActiveMq 5.2 release the default ActiveMQConnectionFactory brokerUrl uses the failover transport. Is this going to solve my problem ? I tried running my application on different machines and it is giving the same error. Can anyone suggest anything ? selezovikj

Re: Failover transport

2008-10-24 Thread selezovikj
- get a free ActiveMQ user guide selezovikj wrote: Even only: failover://tcp://localhost:61617 does not work selezovikj wrote: I have a jms appender sending logging events to active mq broker. In the jndi.properties I have the following provider url

Re: Failover transport

2008-10-24 Thread selezovikj
Jconsole shows the following stack trace: Name: main State: BLOCKED on [EMAIL PROTECTED] owned by: ActiveMQ Task Total blocked: 1 Total waited: 1 Stack trace: org.apache.activemq.transport.failover.FailoverTransport.start(FailoverTransport.java:228) selezovikj wrote: I am getting

Failover transport

2008-10-23 Thread selezovikj
I have a jms appender sending logging events to active mq broker. In the jndi.properties I have the following provider url: java.naming.provider.url = failover:(tcp://localhost:61617,tcp://localhost:61616)?initialReconnectDelay=20maxReconnectDelay=1000randomize=falsemaxReconnectAttempts=10

Re: Failover transport

2008-10-23 Thread selezovikj
Even only: failover://tcp://localhost:61617 does not work selezovikj wrote: I have a jms appender sending logging events to active mq broker. In the jndi.properties I have the following provider url: java.naming.provider.url = failover:(tcp://localhost:61617,tcp://localhost:61616

Re: Log4J ActiveMQ JMS Appender

2008-10-14 Thread selezovikj
Peer did not send his wire format ... Did anyone find with a solution for this problem ? I have the same problem javadevel wrote: We are trying to create a distributed logging service using Log4J and JMS appender to an ActiveMQ topic. However, we keep getting an error Wire format