Hi,

Is it expected that a Netbeans Java (Maven) app can copy/paste the simple
example source code and run when configured to connect against an existing
ActiveMQ instance?

I must be doing something blindingly stupid, as it fails without any
exception for me!

I am connecting against my development ActiveMQ instance and telnetting to
it's port responds just fine. My output is below. Nothing appears in the
ActiveMQ web console for test.queue (queues are normally dynamically
created). What on earth am I not doing right?

SLF4J: The requested version 1.6 by your slf4j binding is not compatible
with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further
details.
234 [main] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel
2.7.2 (CamelContext: camel-1) is starting
234 [main] INFO org.apache.camel.impl.DefaultCamelContext - JMX enabled.
Using ManagedManagementStrategy.
874 [main] INFO
org.apache.camel.impl.converter.AnnotationTypeConverterLoader - Found 7
packages with 17 @Converter classes to load
906 [main] WARN org.apache.camel.impl.converter.DefaultTypeConverter -
Overriding type converter from: StaticMethodTypeConverter: public static
org.apache.activemq.command.ActiveMQDestination
org.apache.camel.component.activemq.ActiveMQConverter.toDestination(java.lang.String)
to: StaticMethodTypeConverter: public static
org.apache.activemq.command.ActiveMQDestination
org.apache.activemq.camel.converter.ActiveMQConverter.toDestination(java.lang.String)
906 [main] INFO org.apache.camel.impl.converter.DefaultTypeConverter -
Loaded 152 type converters in 0.516 seconds
log4j:WARN No appenders could be found for logger
(org.springframework.jms.listener.DefaultMessageListenerContainer).
log4j:WARN Please initialize the log4j system properly.
1296 [main] INFO org.apache.camel.impl.DefaultCamelContext - Route: route1
started and consuming from: Endpoint[test-jms://queue:test.queue]
1312 [main] INFO org.apache.camel.impl.DefaultCamelContext - Route: route2
started and consuming from: Endpoint[file://test]
1312 [main] INFO org.apache.camel.impl.DefaultCamelContext - Total 2 routes,
of which 2 is started.
1312 [main] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel
2.7.2 (CamelContext: camel-1) started in 1.078 seconds
Sent 0 to test.queue
Sent 1 to test.queue
Sent 2 to test.queue
Sent 3 to test.queue
Sent 4 to test.queue
Sent 5 to test.queue
Sent 6 to test.queue
Sent 7 to test.queue
Sent 8 to test.queue
Sent 9 to test.queue
2327 [main] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel
2.7.2 (CamelContext:camel-1) is shutting down
2327 [main] INFO org.apache.camel.impl.DefaultShutdownStrategy - Starting to
graceful shutdown 2 routes (timeout 300 seconds)
2327 [Camel (camel-1) thread #1 - ShutdownTask] INFO
org.apache.camel.impl.DefaultShutdownStrategy - Route: route2 suspended and
shutdown deferred, was consuming from: Endpoint[file://test]
6310 [Camel (camel-1) thread #1 - ShutdownTask] INFO
org.apache.camel.impl.DefaultShutdownStrategy - Route: route1 shutdown
complete, was consuming from: Endpoint[test-jms://queue:test.queue]
6310 [Camel (camel-1) thread #1 - ShutdownTask] INFO
org.apache.camel.impl.DefaultShutdownStrategy - Route: route2 preparing to
shutdown complete.
6310 [Camel (camel-1) thread #1 - ShutdownTask] INFO
org.apache.camel.impl.DefaultShutdownStrategy - Route: route2 shutdown
complete.
6310 [main] INFO org.apache.camel.impl.DefaultShutdownStrategy - Graceful
shutdown of 2 routes completed in 3 seconds
6310 [main] INFO org.apache.camel.impl.DefaultInflightRepository - Shutting
down with no inflight exchanges.
6310 [main] INFO org.apache.camel.impl.DefaultCamelContext - Uptime: 6.076
seconds
6310 [main] INFO org.apache.camel.impl.DefaultCamelContext - Apache Camel
2.7.2 (CamelContext: camel-1) is shutdown in 3.983 seconds

Thanks in advance,

James

Reply via email to