1 Reply Latest reply on Oct 27, 2011 9:11 PM by Willem Jiang

    Exchange Pattern Issue InOut InOnly  FuseEsb Camel Route

    sandy2011 Newbie

      <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">

      <property name="configuration" ref="jmsConfig"/>

      </bean>

       

      <camelContext xmlns="http://camel.apache.org/schema/spring">

      <dataFormats>

      <hl7 id="myhl7"/>

      </dataFormats>

      <route>

      <from uri="jms:incomingOrdersTwo"/>

      <setExchangePattern pattern="InOnly"/>

       

      <marshal ref="myhl7"/>

      <to uri="mina:tcp://XXX.XXX.XXX.XXX:61611?sync=true"/>

      </route>

      </camelContext>

      </beans>

       

      I have the camel context as above. Still i am getting the following exception

       

       

      *The OUT message was not received within: 30000 millis. Exchange[JmsMessage: ActiveMQTextMessage {commandId = 1099, responseRequired = true, messageId = ID:*

       

      • at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:93)90:org.apache.camel.camel-jms:2.7.1.fuse-00-43*

      • ... 11 more*18:17:17,887 | WARN | comingOrdersTwo] | JmsMessageListenerContainer | 91 - org.springframework.jms - 3.0.5.RELEASE | Execution of JMS message listener failed, and no ErrorHandler has been set.

      org.apache.camel.RuntimeCamelException: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. Exchange[JmsMessage: ActiveMQTextMessage {commandId = 1099, responseRequired = true, messageId = ID1055-1319726030747-34:321:1:1:1, originalDestination = null, originalTransactionId = null, producerId = ID:-CA-1055-1319726030747-39:1:1:1, destination = queue://incomingOrdersTwo, transactionId = null, expiration = 1319735874936, timestamp = 1319735854936, arrival = 0, brokerInTime = 1319735807855, brokerOutTime = 1319735807855, correlationId = ID--1060-1319726034529-3-959, replyTo = temp-queue://ID:1055-1319726030747-34:1:1, persistent = true, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties = true, readOnlyBody = true, droppable = false, text = MSH|^~\&|ULTRAGENDAPRO|xxx|||20111021090729.2...50183

      PV1||E}]

      at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)76:org.apache.camel.camel-core:2.7.1.fuse-00-43

      at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:122)90:org.apache.camel.camel-jms:2.7.1.fuse-00-43

      at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:560)91:org.springframework.jms:3.0.5.RELEASE

      at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:498)91:org.springframework.jms:3.0.5.RELEASE

      at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:467)91:org.springframework.jms:3.0.5.RELEASE

      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)91:org.springframework.jms:3.0.5.RELEASE

      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)91:org.springframework.jms:3.0.5.RELEASE

      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058)91:org.springframework.jms:3.0.5.RELEASE

      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1050)91:org.springframework.jms:3.0.5.RELEASE

      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947)91:org.springframework.jms:3.0.5.RELEASE

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886):1.6.0_27

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908):1.6.0_27

      at java.lang.Thread.run(Thread.java:662):1.6.0_27

      Caused by: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. Exchange[JmsMessage: ActiveMQTextMessage {commandId = 1099, responseRequired = true, messageId