I'm seeing some strange behaviour with camel 1.6 and camel 1.6.1
First issue relates to the exchange patterns.
I have setup a camel route that takes a message from a JMS queue, processes
the message and sends a message to another queue.
<camel:route>
<camel:from uri="activemq:queue:source" />
<!-- some processing occurs here -->
<camel:to uri="activemq:queue:confirm?disableReplyTo=true"
pattern="InOnly"/>
</camel:route>
I added pattern="InOnly" on my destination but if you look in the info
logging produced by camel, you'll notice that is still using the "OutIn"
pattern ?
Does anybody know how to solve this issue, as it's quite annoying...
INFO: ID-........./55643-1245079597289/2-0 ->
to(activemq:queue:confirm?disableReplyTo=true), Pattern:OutIn ,
Headers:{JMSXGroupID=null, JMSCorrelationID=xxxxx, JMSType=null,
JMSExpiration=0, JMSMessageID=ID:........49640-1245078470039-0:3:12:1:1,
JMSRedelivered=false, JMSDeliveryMode=2, JMSPriority=4, JMSReplyTo=null,
JMSTimestamp=1245079607451,
JMSDestination=temp-queue://ID:.....-55639-1245079591886-0:0:2} ,
BodyType:java.util.HashMap , Body:{....}}
15/06/2009 17:26:47 org.apache.camel.component.jms.JmsProducer process
Then camel prints out the following warning message.
WARNING: Disabling JMSReplyTo as this Exchange is not OUT capable:
Exchange[JmsMessage: ActiveMQMapMessage {commandId = 60, responseRequired =
true, messageId = ID:....-49640-1245078470039-0:3:12:1:1,
originalDestination = null, originalTransactionId = null, producerId =
ID:......-49640-1245078470039-0:3:12:1, destination =
temp-queue://ID:......55639-1245079591886-0:0:2, transactionId = null,
expiration = 0, timestamp = 1245079607451, arrival = 0, brokerInTime =
1245079607407, brokerOutTime = 1245079607407, correlationId = xxxxx, replyTo
= null, persistent = true, type = null, priority = 4, groupID = null,
groupSequence = 0, targetConsumerId = null, compressed = false, userID =
null, content = org.apache.activemq.util.byteseque...@b08658,
marshalledProperties = null, dataStructure = null, redeliveryCounter = 0,
size = 0, properties = null, readOnlyProperties = true, readOnlyBody = true,
droppable = false} ActiveMQMapMessage{ ... ] with destination: confirm
Second issue relates to the number of consumers started by camel
When upgrading from camel 1.6 to camel 1.6.1 I noticed that all of a sudden
I had 2 consumers for each JMS queue despite the fact that I do specify that
I only want one consumer???
<bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
<property name="connectionFactory" ref="jmsFactory"/>
<property name="transactionManager" ref="jmsTransactionManager"/>
<property name="transacted" value="true"/>
<property name="concurrentConsumers" value="1"/>
</bean>
Any idea what causing this strange behavior?
And does anybody know how to fix these issues?
Thanks,
Tim
--
View this message in context:
http://www.nabble.com/Strange-behaviour-with-camel-and-JMS-queues-tp24037119p24037119.html
Sent from the Camel - Users mailing list archive at Nabble.com.