You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Dignesh <dg...@opentext.com> on 2017/01/26 13:04:03 UTC

TomEE JMS messages not replicated across all the nodes in cluster

Hello,

I am using 7.0.2 version of TomEE plus. I have configured two instances in a
cluster.
I am raising a JMS message(Destination is topic) in one node, and i want
that the message to be replicated on both nodes.Currently the message is
delivered only to the node which is raising the message. I want the message
to be replicated across all the nodes.
Should there be an additional configuration to be done to acheive this ?Or
is it the default behavior.

Thank you,
Dignesh



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-JMS-messages-not-replicated-across-all-the-nodes-in-cluster-tp4680944.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: TomEE JMS messages not replicated across all the nodes in cluster

Posted by Dignesh <dg...@opentext.com>.
Hi, 
I configured my activemq.xml with the networkconnectors configuration.
I added all the required spring jars in the tomee/lib

I still dont see the messages getting received on all nodes.

I have attached  the activemq.xml and tomee.xml files of 2 nodes  for
reference. node_2_actvie.xml
<http://tomee-openejb.979440.n4.nabble.com/file/n4680966/node_2_actvie.xml>  
node1_tomee.xml
<http://tomee-openejb.979440.n4.nabble.com/file/n4680966/node1_tomee.xml>  
node1active.xml
<http://tomee-openejb.979440.n4.nabble.com/file/n4680966/node1active.xml>  
node2_tome.xml
<http://tomee-openejb.979440.n4.nabble.com/file/n4680966/node2_tome.xml>  

Can anyone please help me were i am going wrong. 

Thank you very much. 



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-JMS-messages-not-replicated-across-all-the-nodes-in-cluster-tp4680944p4680966.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: TomEE JMS messages not replicated across all the nodes in cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
doc is http://activemq.apache.org/clustering.html

here is a sample using tomee uri:
https://github.com/apache/tomee/blob/master/container/openejb-core/src/test/java/org/apache/openejb/resource/activemq/ActiveMQ5FactoryTest.java#L55
if you go with the activemq.xml, activemq doc is up to date but you need to
add needed dependencies like spring etc in tomee/lib. Think our doc is no
more up to date for that (we rely on very old deprecated versions)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-01-26 18:55 GMT+01:00 Dignesh <dg...@opentext.com>:

> hello,
> Is it possible to provide an example or documentation reference so that i
> can give a try ?
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-JMS-messages-not-replicated-across-all-the-nodes-in-
> cluster-tp4680944p4680950.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>

Re: TomEE JMS messages not replicated across all the nodes in cluster

Posted by Dignesh <dg...@opentext.com>.
hello,
Is it possible to provide an example or documentation reference so that i
can give a try ?



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-JMS-messages-not-replicated-across-all-the-nodes-in-cluster-tp4680944p4680950.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: TomEE JMS messages not replicated across all the nodes in cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
server.xml and context.xml are unrelated to AMQ, you need to either use the
broker url to setup the cluster (uri syntax is a bit tricky but it is
doable since 7.0.2 IIRC) or activemq.xml syntax (you need to add a few jar
to tomee lib for it to work).


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-01-26 18:48 GMT+01:00 Dignesh <dg...@opentext.com>:

> Hello,
>
> I only modifed server.xml and context.xml files to form the 2 instances in
> cluster.
> Are there any additional configuration to be done to have activeMq
> clustersized ?
>
>
> Thank you,
> Dignesh,
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-JMS-messages-not-replicated-across-all-the-nodes-in-
> cluster-tp4680944p4680948.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>

Re: TomEE JMS messages not replicated across all the nodes in cluster

Posted by Dignesh <dg...@opentext.com>.
Hello,

I only modifed server.xml and context.xml files to form the 2 instances in
cluster.
Are there any additional configuration to be done to have activeMq
clustersized ?


Thank you,
Dignesh,



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-JMS-messages-not-replicated-across-all-the-nodes-in-cluster-tp4680944p4680948.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: TomEE JMS messages not replicated across all the nodes in cluster

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

have a look on activemq configuration side. If you don't ensure AMQ
configuration is clusterized then you have 2 split instances


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-01-26 14:04 GMT+01:00 Dignesh <dg...@opentext.com>:

> Hello,
>
> I am using 7.0.2 version of TomEE plus. I have configured two instances in
> a
> cluster.
> I am raising a JMS message(Destination is topic) in one node, and i want
> that the message to be replicated on both nodes.Currently the message is
> delivered only to the node which is raising the message. I want the message
> to be replicated across all the nodes.
> Should there be an additional configuration to be done to acheive this ?Or
> is it the default behavior.
>
> Thank you,
> Dignesh
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-JMS-messages-not-replicated-across-all-the-nodes-in-
> cluster-tp4680944.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>