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
0
votes
0 answers

JGroups get main reference of cluster?

I want to create a cluster of server replicas with JGroups. I have no problem being able to coordinate communication between the replicas but I do not know how to access, say, the conceptually main server within the cluster. The only solution I can…
jrhetf4xb
  • 161
  • 3
  • 3
  • 10
0
votes
1 answer

Infinispan Clustered Cache & JGroups - Servers don't see each other

I'm using Infinispan to create a distributed cache between two servers and to leverage its failover feature. I initially tested my webservice on two local instances of tomcat, using the pre-configured JGroups configuration file provided by…
user7702
  • 345
  • 6
  • 14
0
votes
0 answers

Infinispan Distributed Cache Issues

I am new to Infinispan. We have setup a Infinispan cluster so that we can make use of the Distributed Cache for our CPU and memory intensive task. We are using UDP as the communication medium and Infinispan MapReduce for distributed processing. The…
0
votes
1 answer

JGroups RPC - Concurrent invocation from same source

We are currently investigating JGroups in a multi-node environment for internal communication and member discovery. We are heavily relying on RPC, from event transmission to service consumption among the nodes are done via RPC, so JGroups…
0
votes
1 answer

JGroups properties inheritance

There is a phrase in JGroups documentation: TP is the base class for all transports, e.g. UDP and TCP. All of the properties defined here are inherited by the subclasses. What do they mean by the word "subclasses"? More specifically, if I set…
ars
  • 1,509
  • 3
  • 18
  • 29
0
votes
1 answer

Can I configure JGroups with both a TCP and UDP section at the same time

We have been running a JBOSS Cache cluster for a few years now in UDP and for the most part it's been fine. We had to add a node outside the firewall so we reconfigured it for TCP and have since had a lot of problems. Can we have both TCP/unicast…
Bill K
  • 62,186
  • 18
  • 105
  • 157
0
votes
1 answer

Getting JGroups to work

I'm a Java programming novice. I liked the sound of JGroups and thought I'd have a look. Downloaded the ReplCaheDemo jar and thought it was great. Downloaded the JGroups-master zip, extracted, used the ReplCacheDemo class in a Netbeans package and…
vonsydow
  • 3
  • 1
0
votes
1 answer

JBoss 6 Cluster Node register & deregister listener in deployed application

I have a cluster over jboss6 AS in domain mode. I have an application deployed in it. My application need to have a listener(callback) when a new node become member of the cluster and also when gets removed. Is there a way to get the member node…
Saju
  • 402
  • 3
  • 11
  • 30
0
votes
0 answers

Java groups exception JGRP000002 using hotspot jdk6

I am migrating my application from jrockit jdk6 to hotspot jdk6. While building my application using maven, one of my integration test makes the build to hang with below error message: jgroups.JGroupsCacheManagerPeerProvider,ERROR,Failed to create…
EmeraldTablet
  • 812
  • 3
  • 12
  • 30
0
votes
1 answer

Cache Replication in Clustered Environment using EHCache JGroups

I am using EhCache framework to cache application data and thinking to use JGroups cache replication to replicate cache in a clustered environment. Is it really an industry standard for cache replication in clustered environment? Or, there can be…
Narendra Verma
  • 2,372
  • 6
  • 34
  • 61
0
votes
0 answers

Getting hold of replicated session objects in Java / JBoss

I have an application deployed with JBoss on two machines in a cluster. When a user logs into one application server, I've validated that the session is replicated to the other cluster (logging in with the same cookies to the other server confirms…
Kon
  • 10,702
  • 6
  • 41
  • 58
0
votes
1 answer

jGroups and JDBC_PING, members cant talk but no errors

I do not know how to support my product. Suppose that I have a bad network. The jChannel instances bind to a bad address where data cannot be routed to other cluster members. I am using JDBC_PING. All jGroups nodes successfully attach to the…
0
votes
1 answer

Jgroups: is it required to use merge2 in LAN

I am using Jgroups to cluster three machines in a LAN. All the machines are connected to single switch. Is it required to use merge2 in my configuration? Is there any performance advantage that I can gain by removal of merge2?
0
votes
1 answer

Problems with jgroups Connection.Receiver

we are using jgroups to synchronize several java objects through our cluster. At the moment we only have two servers and we use the TCP protocol. We configured a single tcp port (42812) for synchronization. We discovered the following problem: When…
user3111278
  • 41
  • 1
  • 4
0
votes
2 answers

understanding urlclassloader, how to access a loaded jar's classes

I am trying to understand how to access/make available a jar file using URLClassLoader. Firstly I am loading the jar file with package myA; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import…
art vanderlay
  • 2,341
  • 4
  • 35
  • 64