activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shanmugam <shanmuth...@gmail.com>
Subject Camel Message Publish and Consume sequence order
Date Thu, 20 Feb 2014 11:22:07 GMT
Hello All


iam using concurrent consumer count is 5

<bean id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
	    <property name="brokerURL" value="${activemq.broker.url}"/>	  
</bean>
<bean id="pooledConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory" init-method="start"
destroy-method="stop">
	<property name="maxConnections" value="${activemq.max.pooled.connections}"
/>
	<property name="maximumActiveSessionPerConnection"
value="${activemq.max.active.sessions}" />
	<property name="connectionFactory" ref="jmsConnectionFactory" />
  </bean>

  <bean id="jmsConfig"
class="org.apache.camel.component.jms.JmsConfiguration">
	<property name="connectionFactory" ref="pooledConnectionFactory" />
	<property name="transacted" value="false" />
  </bean>

<camelContext id="camelContext" trace="true"
		xmlns="http://camel.apache.org/schema/spring">
		 <endpoint id="queue" uri="jms:queue:${queue.metadata}"/>		
	</camelContext>

i am publish the message order following
message1
message2
message3

but receive sometimes
Message3
Message1
Message2

Here order will changed 

how to set sequence number in publish & consumer side

Thanks








--
View this message in context: http://activemq.2283324.n4.nabble.com/Camel-Message-Publish-and-Consume-sequence-order-tp4678190.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message