Questions tagged [jgroups]

JGroups is a Java networking library that supports reliable group communication over UDP (IP Multicast) or TCP.

JGroups is a toolkit for reliable messaging. It can be used to create clusters whose nodes can send messages to each other.

The most powerful feature of JGroups is its flexible protocol stack, which allows developers to adapt it to exactly match their application requirements and network characteristics.

JGroups comes with a large number of protocols, for example:

  • Transport protocols: (IP Multicast) or
  • Fragmentation of large messages
  • Reliable unicast and multicast message transmission
  • Failure detection: crashed nodes are excluded from the membership
  • Flow control to prevent slow receivers to get overrun by fast senders
  • Ordering protocols: FIFO, Total Order
  • Membership
  • Encryption
  • Compression
368 questions
1
vote
0 answers

Exception in thread "main" java.net.SocketException: Unrecognized Windows Sockets error: 0: Cannot bind when using Jgroups

I am trying to run the SimpleChat program from Jgroups tutorial using tcp protocol on three different systems in the same subnet. The program runs fine (joins the groups, sends messages between the nodes) on two of the three systems. When I try to…
1Mojojojo1
  • 163
  • 1
  • 2
  • 12
1
vote
2 answers

Broadcast message in microservices and run it once in multiple instances

I'm using micro services, suppose I have 3 services and they all are connected to each other through a JGroup UDP channel (JGroups can broadcast messages between them): --- --- --- | A | --msg--> | B || C | --- --- --- If…
user1079877
  • 9,008
  • 4
  • 43
  • 54
1
vote
1 answer

Hibernate Search +infinispan +jgroups back end slave lock issue

I am new to hibernate search. We decided to user hibernate search for my application. We choose jgroups as a backend. Here is my configuration file.
1
vote
0 answers

Ehcache is not working in cluster/multi-vm

I am trying to replicate cache for multi vm but It's not working..... But I am Getting NPE exception in while trying to put element in cache becuase EhcacheManager ehcacheManager = EhcacheManager.getInstance(); Cache cache =…
Anand Kushwaha
  • 457
  • 4
  • 15
1
vote
1 answer

jGroups is not finding other computers

I am using jGroups to be able to determine the master for multiple instances of of an app I have, however, all works well on the same computer, but other computers on the same subnet does not get notified. I tried many options I found on the net…
Paul Gobin
  • 81
  • 1
  • 6
1
vote
1 answer

How does Jgroup on UDP become reliable?

In my mind, UDP is fast but not reliable, and in a lot of places jgroup is based on UDP, is that reliable? I saw a lot of places use jgroup to transfer caching information. Does jgroup have to use TCP to make transition reliable?
BlueDolphin
  • 9,765
  • 20
  • 59
  • 74
1
vote
0 answers

Integrate JGroups with ActiveMQ

I want to pass my messages (JSON strings) ActiveMQ using JGroups. Has anyone done this before? I am not able to find any example or sample code to start with. My main challenge is the design. So far, this is my design Is my design correct? It would…
abi_pat
  • 572
  • 2
  • 12
  • 35
1
vote
1 answer

Configuring infinispan

My application is running on 10 servers and I use infinispan for managing the cache on those 10 servers. Currently infinispan is configured on all the 10 servers. I wish to restrict the infinispan instances to just 4 servers instead of the current…
1
vote
1 answer

WARNING: JGRP000014: Discovery.timeout has been deprecated: GMS.join_timeout should be used instead

WARNING: JGRP000014: Discovery.timeout has been deprecated: GMS.join_timeout should be used instead why am I getting this if it's not defined directly by me? at least I don't think it is, looks like we're using the GMS.join_timeout Here's how this…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
1
vote
1 answer

incorrect merge views with infinispan and jgroups

I've a 3 node infinispan cluster with numOwners=2 and I'm running into issues with cluster views when one of the node gets disconnected from the network and joins back. Following are the logs: (Incoming-1,BrokerPE-0-28575) ISPN000094: Received new…
geekprogrammer
  • 1,108
  • 1
  • 13
  • 39
1
vote
2 answers

JAVA 1.5 in OSX 10.6.4

I am trying to debug a j2ee application in tomcat using Intellij Idea in an OS X 10.6.4 system. I need it specifically to run over a 1.5 JVM and 1.5 JDK so that the jgroups-all component doesn't crash the application through this error: class:…
aragaojcna
  • 95
  • 1
  • 2
  • 4
1
vote
2 answers

WildFly 10 Jgroups allways binding to localhost interface

Hi I'm trying to develop a clustered application that uses Infinispan for caching. First I tried to run in replicated mode by starting two instance of wildfly using the localhost as binding interface (with port offsets). This worked fine. But once I…
Isuru
  • 700
  • 9
  • 22
1
vote
1 answer

JGroups cluster nodes ports if port_range set to 0 or default value

I would like to know if the JGroups cluster uses the next available port, even if the port_range is set to 0 or allowed to remain at the default value. As per documentation, I understand, number of additional ports to be probed for membership will…
Nivedita Dixit
  • 181
  • 1
  • 3
  • 12
1
vote
3 answers

No physical address for x, dropping message on node restart in jgroups cluster

My node log is flooded with warn message of "Dropping unicast message to wrong destination" when one of the node in the cluster is restarted . we are using Jgroups, TCP, version of jgroups-3.4.1.Final. My server does not come up , with these warning…
Nivedita Dixit
  • 181
  • 1
  • 3
  • 12
1
vote
1 answer

JGroups(JChannel) Chat Application not working on other computer

I'm developing a simple chat application using JGroups. The application works perfectly in my computer, but when I try to run it on another computer on the same network, it doesn't work. void start() throws Exception { channel=new JChannel(); …