You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Rajeshactivemq <ra...@intel.com> on 2018/06/25 15:47:07 UTC

Integraton between ActiveMQ5.14 with SAP PI channel with EOIO Fails

i am using Activemq Master slave cluster with JDBC connecting SAP PI system .
one of the such channel in SAP PI has EOIO (exactly once in order )
according to which out of multiple consumers connecting to ActiveMQ, only
one consumer is able to process the messages successfully . remaining other
consumers do not process the msgs even if sent .

By Default Activemq load balances the msgs between all the consumers which
does not work well in this scenario . so we have tried with 2 options 
1.have the consumer connect with exclusive.consumer=true 
2. set up "strictorderingpolicy" enables on the activemq destination policy
. 

now it works fine under normal scenario. but whenever there is a network
issue or a fail over in the ActiveMQ , or restart on consumer end . whole
communication is broken . untill the Activemq or the consumers are restarted 

Can anyone help on this to avoid such issues 



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Integraton between ActiveMQ5.14 with SAP PI channel with EOIO Fails

Posted by Tim Bain <tb...@alumni.duke.edu>.
Can you please describe what you mean by "whole communication is broken"?

Exclusive consumer behavior only lasts for the duration of the connection;
once the connection is broken from either end, the broker will attempt to
assign the exclusive consumer behavior to another consumer (one that's
actually connected at the time). If you're looking for the exclusive
consumer assignment to remain the same even when the connection is broken,
you'll need to use some external means (a database, Zookeeper, etcd, or
similar) to tell only one process to create its consumers. That would be
custom code if you went down that path.

Tim

On Mon, Jun 25, 2018, 9:47 AM Rajeshactivemq <ra...@intel.com>
wrote:

> i am using Activemq Master slave cluster with JDBC connecting SAP PI
> system .
> one of the such channel in SAP PI has EOIO (exactly once in order )
> according to which out of multiple consumers connecting to ActiveMQ, only
> one consumer is able to process the messages successfully . remaining other
> consumers do not process the msgs even if sent .
>
> By Default Activemq load balances the msgs between all the consumers which
> does not work well in this scenario . so we have tried with 2 options
> 1.have the consumer connect with exclusive.consumer=true
> 2. set up "strictorderingpolicy" enables on the activemq destination policy
> .
>
> now it works fine under normal scenario. but whenever there is a network
> issue or a fail over in the ActiveMQ , or restart on consumer end . whole
> communication is broken . untill the Activemq or the consumers are
> restarted
>
> Can anyone help on this to avoid such issues
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>