Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 55989 invoked from network); 4 Nov 2008 15:14:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2008 15:14:14 -0000 Received: (qmail 33132 invoked by uid 500); 4 Nov 2008 15:14:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 33115 invoked by uid 500); 4 Nov 2008 15:14:19 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 33104 invoked by uid 99); 4 Nov 2008 15:14:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 07:14:19 -0800 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.247.192.232] (HELO EUnet.yu) (194.247.192.232) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 15:13:01 +0000 Received: from [194.247.199.205] (billingdev-hotspot.eunet.co.yu [194.247.199.205] (may be forged)) by EUnet.yu (8.13.6/8.13.6) with ESMTP id mA4FDIjb025121 for ; Tue, 4 Nov 2008 16:13:18 +0100 Message-ID: <4910668E.5030402@ttmsolutions.com> Date: Tue, 04 Nov 2008 16:13:18 +0100 From: Dejan Bosanac User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Commons-logging conflict with failover References: <20323028.post@talk.nabble.com> <20323586.post@talk.nabble.com> <20323978.post@talk.nabble.com> In-Reply-To: <20323978.post@talk.nabble.com> Content-Type: multipart/alternative; boundary="------------060901080606030208030500" X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_50,HTML_30_40,HTML_MESSAGE,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.4 X-AVAS-Spam-Level: x X-Virus-Checked: Checked by ClamAV on apache.org --------------060901080606030208030500 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Can you try adding log4j.logger.org.apache.activemq=OFF and see what happens? Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://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"); > __________________________________ > > The MSGSTATS (in the log4j.properties) uses the MessageLog and the jms > appender: > ___________________________________________________ > log4j.category.MSGSTATS=DEBUG,MessageLog, jms > log4j.additivity.MSGSTATS=false > log4j.appender.MessageLog=biz.minaret.log4j.DatedFileAppender > log4j.appender.MessageLog.Directory=../logs/ > log4j.appender.MessageLog.Prefix=msg${PROCESS}. > log4j.appender.MessageLog.Suffix=.log > log4j.appender.MessageLog.layout=org.apache.log4j.PatternLayout > log4j.appender.MessageLog.layout.ConversionPattern=%d#%c{1}#STATS#%x%m%n > > log4j.appender.jms=org.apache.log4j.net.JMSAppender > log4j.appender.jms.TopicBindingName=LoggingTopic > log4j.appender.jms.topicConnectionFactoryBindingName=ConnectionFactory > log4j.appender.jms.layout=org.apache.log4j.PatternLayout > log4j.appender.jms.layout.ConversionPattern=%d#%c{1}#STATS#%x%m%n > -------------------------------------------------------------------------------------------------------------------------------------------- > > Can you please tell me what do you mean by ActiveMQ logging information ? Do > you mean the information that the failover logs when it connects ? > And what does this have to do with commons-logging ? > > > > > > > > James.Strachan wrote: > >> You should not be sending ActiveMQ logging 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 : >> >>> 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. >>> On the other hand, when I use log4j only, it successfully logs when I use >>> the failover transport. This is the output I get when I only use log4j: >>> >>> Nov 4, 2008 3:36:03 PM >>> org.apache.activemq.transport.failover.FailoverTransport doReconnect >>> INFO: Successfully connected to tcp://localhost:61617 >>> >>> I really really want to use the failover transport. Is there any way to >>> fix >>> the problem you mentioned ? >>> If failover uses logging to indicate when it is connected and somehow >>> commons-logging does not allow this, is there a way to forcefully >>> initialize >>> logging so that failover can log successfully and not block ? >>> >>> Thank you very much in advance >>> >>> >>> >>> >>> James.Strachan wrote: >>> >>>> >>>> Are you using the JMS appender as well by any chance? Do you get any >>>> logging output? >>>> >>>> FWIW the failover transports uses logging to indicate when its >>>> connected; so if logging is not working it might block >>>> -- >>>> James >>>> ------- >>>> http://macstrac.blogspot.com/ >>>> >>>> Open Source Integration >>>> http://fusesource.com/ >>>> >>>> >>>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Commons-logging-conflict-with-failover-tp20323028p20323586.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >>> >>> >> >> -- >> James >> ------- >> http://macstrac.blogspot.com/ >> >> Open Source Integration >> http://fusesource.com/ >> >> >> > > -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net --------------060901080606030208030500--