Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EIG:JGroups provider"

(New page: ===Using the JGroups provider===)
 
Line 1: Line 1:
===[[EIG:Using the provider|Using the JGroups provider]]===
+
===JGroups provider===
 +
JGroups provider allows to adapt the JGroups protocol to an ECF container, consequently providing all of JGroups capabilities to ECF applications.
 +
 
 +
Protocol JGroups is documented at the [http://jgroups.org| JGroups site].
 +
 
 +
 
 +
=== JGroups container instantiation ===
 +
 
 +
 
 +
JGroups container ID : '''ecf.jgroups.manager'''
 +
 
 +
Sample code:
 +
 
 +
<source lang="java">
 +
IContainerFactory factory = getContainerManager().getContainerFactory();
 +
IContainer container = factory.createContainer( "ecf.jgroups.manager", "jgroups:///testConfig?stackName=udp" );
 +
</source>
 +
 
 +
All stack names (refer to [http://jgroups.org| JGroups site] for explanation of stacks) are available in the ''conf/'' directory of distribution plugin. The stack description begins with a ''config'' tag. This config can be cut and added in a protocol stack (''protocol_stacks'') to configure the transport. There is a default stack configured by default with ID : '''org.eclipse.ecf.provider.jgroups.default'''.  This stack can be configured with the extension point '''org.eclipse.ecf.provider.jgroups.stackConfig''', providing an ID and a config file.

Revision as of 12:22, 2 March 2011

JGroups provider

JGroups provider allows to adapt the JGroups protocol to an ECF container, consequently providing all of JGroups capabilities to ECF applications.

Protocol JGroups is documented at the JGroups site.


JGroups container instantiation

JGroups container ID : ecf.jgroups.manager

Sample code:

IContainerFactory factory = getContainerManager().getContainerFactory();
IContainer container = factory.createContainer( "ecf.jgroups.manager", "jgroups:///testConfig?stackName=udp" );

All stack names (refer to JGroups site for explanation of stacks) are available in the conf/ directory of distribution plugin. The stack description begins with a config tag. This config can be cut and added in a protocol stack (protocol_stacks) to configure the transport. There is a default stack configured by default with ID : org.eclipse.ecf.provider.jgroups.default. This stack can be configured with the extension point org.eclipse.ecf.provider.jgroups.stackConfig, providing an ID and a config file.

Back to the top