And can you answer this question to me:
I have another question. In my jndi.properties file I have the following
information:
java.naming.factory.initial =
org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url =
failover://(tcp://localhost:61617,tcp://localhost:61616)?randomize=false
topic.LoggingTopic = LoggingTopic
Then in the log4j.properties my JMS appender is like this:
log4j.appender.jms=org.apache.log4j.net.JMSAppender
log4j.appender.jms.InitialContextFactoryName=org.apache.activemq.jndi.ActiveMQInitialContextFactory
log4j.appender.jms.ProviderURL=failover://(tcp://localhost:61617,tcp://localhost:61616)?randomize=false
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
------------------------------------------------------------------------------------------------------------------
WHY should I specify the initialContextFactoryName again, the providerURL
again ?
selezovikj wrote:
>
> Yes, I am sure.
> When I have providerURL=tcp://localhost:61617 only, it connects with no
> problems
>
>
>
> James.Strachan wrote:
>>
>> 2008/10/16 selezovikj <[EMAIL PROTECTED]>:
>>>
>>> You are right.
>>> However, what I get is:
>>> org.apache.activemq.transport.failover.FailoverTransport DEBUG - Waking
>>> up
>>> reconnect task
>>> org.apache.activemq.transport.failover.FailoverTransport DEBUG -
>>> Attempting
>>> connect to: tcp://localhost:61617
>>
>> You sure you've got the right port number?
>>
>> --
>> James
>> -------
>> http://macstrac.blogspot.com/
>>
>> Open Source Integration
>> http://fusesource.com/
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Log4j-JMS-appender---failover-tp20010627s22882p20012332.html
Sent from the Camel - Users mailing list archive at Nabble.com.