Thanks Claus and Stefan. Removed parallelProcessing and also broker: config but still same behavior. May be I am missing something stupid?
here is a stacktrace if that helps 1375 [main] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.9.1 (CamelContext: camelContext) is starting 1375 [main] INFO org.apache.camel.management.ManagementStrategyFactory - JMX is disabled. Using DefaultManagementStrategy. 1735 [JMX connector] INFO org.apache.activemq.broker.jmx.ManagementContext - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 1782 [main] INFO org.apache.activemq.store.kahadb.plist.PListStore - PListStore:activemq-data\localhost\tmp_storage started 1782 [main] INFO org.apache.activemq.broker.BrokerService - Using Persistence Adapter: KahaDBPersistenceAdapter[C:\myworkspace\activemq-data\localhost\KahaDB] 2735 [main] INFO org.apache.activemq.store.kahadb.MessageDatabase - KahaDB is version 3 2766 [main] INFO org.apache.activemq.store.kahadb.MessageDatabase - Recovering from the journal ... 2766 [main] INFO org.apache.activemq.store.kahadb.MessageDatabase - Recovery replayed 1 operations from the journal in 0.0 seconds. 2828 [main] INFO org.apache.activemq.broker.BrokerService - ActiveMQ 5.5.1 JMS Message Broker (localhost) is starting 2828 [main] INFO org.apache.activemq.broker.BrokerService - For help or more information please see: http://activemq.apache.org/ 3047 [main] INFO org.apache.activemq.broker.BrokerService - ActiveMQ JMS Message Broker (localhost, ID:myhostname-0:1) started 3047 [main] INFO org.apache.activemq.broker.TransportConnector - Connector vm://localhost Started 3078 [main] INFO org.apache.camel.spring.SpringCamelContext - Route: route1 started and consuming from: Endpoint[activemq://queue:SourceMsgQueue] 3094 [main] INFO org.apache.camel.spring.SpringCamelContext - Total 1 routes, of which 1 is started. 3094 [main] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.9.1 (CamelContext: camelContext) started in 1.719 seconds Route id route1 3094 [main] INFO org.apache.camel.impl.DefaultShutdownStrategy - Starting to graceful shutdown 1 routes (timeout 10 seconds) 4141 [Camel (camelContext) thread #1 - ShutdownTask] INFO org.apache.camel.impl.DefaultShutdownStrategy - Route: route1 shutdown complete, was consuming from: Endpoint[activemq://queue:SourceMsgQueue] 4141 [main] INFO org.apache.camel.impl.DefaultShutdownStrategy - Graceful shutdown of 1 routes completed in 1 seconds 4141 [main] INFO org.apache.camel.spring.SpringCamelContext - Route: route1 stopped, was consuming from: Endpoint[activemq://queue:SourceMsgQueue] 4141 [main] INFO org.apache.camel.spring.SpringCamelContext - Route: route1 shutdown and removed, was consuming from: Endpoint[activemq://queue:SourceMsgQueue] 4141 [main] INFO org.apache.camel.model.RouteDefinition - AdviceWith route after: Route[[From[activemq:queue:SourceMsgQueue]] -> [InterceptSendToEndpoint[activemq:queue:destiQueue1 -> [ThrowException[javax.jms.JMSException]]], Policy[ref:null]]] 4188 [main] INFO org.apache.camel.spring.SpringCamelContext - Route: route1 started and consuming from: Endpoint[activemq://queue:SourceMsgQueue] receipientList prepared 4250 [Camel (camelContext) thread #2 - JmsConsumer[SourceMsgQueue]] ERROR org.apache.camel.spring.spi.TransactionErrorHandler - Failed delivery for (MessageId: queue_SourceMsgQueue_ID_hostname-2_1_2_1_1 on ExchangeId: ID:hostname-2:1:2:1:1). Exhausted after delivery attempt: 1 caught: javax.jms.JMSException: Cannot publish to destiQueue1 javax.jms.JMSException: Cannot publish to destiQueue1 at SourceQConsumerBehavior$1.configure(ConsumerBehavior.java:49) at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:324) at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:278) at org.apache.camel.model.RouteDefinition.adviceWith(RouteDefinition.java:229) ******************************************************************************** 7313 [main] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.9.1 (CamelContext: camelContext) is shutting down 7313 [main] INFO org.apache.camel.impl.DefaultShutdownStrategy - Starting to graceful shutdown 1 routes (timeout 10 seconds) 8297 [Camel (camelContext) thread #1 - ShutdownTask] INFO org.apache.camel.impl.DefaultShutdownStrategy - Route: route1 shutdown complete, was consuming from: Endpoint[activemq://queue:SourceMsgQueue] 8297 [main] INFO org.apache.camel.impl.DefaultShutdownStrategy - Graceful shutdown of 1 routes completed in 0 seconds 8297 [main] INFO org.apache.camel.impl.DefaultInflightRepository - Shutting down with no inflight exchanges. 8297 [main] INFO org.apache.camel.spring.SpringCamelContext - Uptime: 6.922 seconds 8297 [main] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.9.1 (CamelContext: camelContext) is shutdown in 0.984 seconds Apr 26, 2012 10:55:50 AM org.springframework.context.support.AbstractApplicationContext doClose INFO: Closing org.springframework.context.support.ClassPathXmlApplicationContext@1f9dc36: startup date [Thu Apr 26 10:55:42 EDT 2012]; root of context hierarchy Apr 26, 2012 10:55:50 AM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@8aeed0: defining beans 8297 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.BrokerService - ActiveMQ Message Broker (localhost, ID:hostname-0:1) is shutting down 8297 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.TransportConnector - Connector vm://localhost Stopped 8297 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.BrokerService - ActiveMQ Message Broker (localhost, ID:hostname-0:1) is shutting down 8313 [ActiveMQ ShutdownHook] INFO org.apache.activemq.store.kahadb.plist.PListStore - PListStore:activemq-data\localhost\tmp_storage stopped 8313 [ActiveMQ ShutdownHook] INFO org.apache.activemq.store.kahadb.KahaDBStore - Stopping async queue tasks 8313 [ActiveMQ ShutdownHook] INFO org.apache.activemq.store.kahadb.KahaDBStore - Stopping async topic tasks 8313 [ActiveMQ ShutdownHook] INFO org.apache.activemq.store.kahadb.KahaDBStore - Stopped KahaDB 8531 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.BrokerService - ActiveMQ JMS Message Broker (localhost, ID:myhostname:1) stopped 8531 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.BrokerService - ActiveMQ JMS Message Broker (localhost, ID:myhostname-0:1) stopped -- View this message in context: http://camel.465427.n5.nabble.com/Transacted-test-case-with-ActiveMQ-not-working-tp5666012p5667874.html Sent from the Camel - Users mailing list archive at Nabble.com.
