After start the activemq server, I tried to run the jmsappender example comes with activemq version 5.3. The program hangs, below is the debug info:
C:\apache\apache-activemq-5.3.0>cd example C:\apache\apache-activemq-5.3.0\example>ant log4j-jms Buildfile: build.xml init: compile: log4j-jms: [echo] Running a Log4j JMS Appender example [java] log4j: Trying to find [log4j-jms.properties] using context classloader sun.misc.launcher$appclassloa...@11b86e7. [java] log4j: Using URL [file:/C:/apache/apache-activemq-5.3.0/example/target/classes/log4j-jms.properties] for automatic log4j configuration. [java] log4j: Reading configuration from URL file:/C:/apache/apache-activemq-5.3.0/example/target/classes/log4j-jms.properties [java] log4j: Parsing for [root] with value=[INFO, stdout, jms]. [java] log4j: Level token is [INFO]. [java] log4j: Category root set to INFO [java] log4j: Parsing appender named "stdout". [java] log4j: Parsing layout options for "stdout". [java] log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n]. [java] log4j: End of parsing for "stdout". [java] log4j: Parsed "stdout" options. [java] log4j: Parsing appender named "jms". [java] log4j: Setting property [initialContextFactoryName] to [org.apache.activemq.jndi.ActiveMQInitialContextFactory]. [java] log4j: Setting property [topicBindingName] to [logTopic]. [java] log4j: Setting property [topicConnectionFactoryBindingName] to [ConnectionFactory]. [java] log4j: Setting property [providerURL] to [tcp://localhost:61616]. [java] log4j: Getting initial context. [java] log4j: Looking up [ConnectionFactory] [java] log4j: About to create TopicConnection. [java] log4j: Creating TopicSession, non-transactional, in AUTO_ACKNOWLEDGE mode. The program hangs overhere, doing nothing and not report any error/exception either. Am I doing something wrong? Any help is appreaciated! Jeffrey -- View this message in context: http://old.nabble.com/log4j-jms-example-comes-with-version-5.3-doesn%27t-work-tp26359540p26359540.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.