You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Jonas Sondell <js...@ladok.umu.se> on 2001/10/22 13:40:43 UTC

Problem with JMSAppender

Hi
During the past week i have been trying to get the JMSAppender to work but
with no success. The problem is simply that the JMSAppender is not closing
after the messages has been sent. Any ideas?


Output in the VAJ console when executing org.apache.log4j.test.Hello class:
----------------------------------------------
log4j: Trying to find [log4j.properties] using
sun.misc.Launcher$AppClassLoader@2c3d class loader.
log4j: Using URL [file:/C:/XML_config/log4j.properties] for automatic log4j
configuration.
log4j: Reading configuration from URL file:/C:/XML_config/log4j.properties
log4j: Parsing for [root] with value=[,A1].
log4j: Parsing appender named "A1".
log4j: Setting property [topicConnectionFactoryBindingName] to
[JmsTopicConnectionFactory].
log4j: Setting property [initialContextFactory] to
[org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory].
log4j: Setting property [topicBindingName] to [topic1].
log4j: Setting property [providerUrl] to [rmi://localhost:1099/JndiServer].
log4j: Parsed "A1" options.
log4j: Finished configuring.
2610 [main] DEBUG org.apache.log4j.test.Hello  - Hello world.
2938 [main] INFO org.apache.log4j.test.Hello  - What a beatiful day.

Here the process(org.apache.log4j.test.Hello.Main()) hang and when i kill it
manually it print:
log4j: Finalizing appender named [A1].

log4j configuration file:
----------------------------------------------
log4j.rootCategory=,A1
log4j.Debug=true
log4j.appender.A1=org.apache.log4j.net.JMSAppender
log4j.appender.A1.TopicBindingName=topic1
log4j.appender.A1.TopicConnectionFactoryBindingName=JmsTopicConnectionFactor
y
log4j.appender.A1.InitialContextFactory=org.exolab.jms.jndi.rmi.RmiJndiIniti
alContextFactory
log4j.appender.A1.ProviderUrl=rmi://localhost:1099/JndiServer

Thanks
Jonas Sondell


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org