Purpose: Define the implementation of the abstract RemoteConnection for JGroups.
Description: Executing commands implementation of RemoteConnection is done via JGroups JChannel. @author James Sutherland @since EclipseLink 2.5
58596061626364656667
protected JGroupsRemoteConnection createConnection(boolean isLocalConnectionBeingCreated) throws RemoteCommandManagerException { try { JChannel channel = new JChannel(); channel.connect(this.rcm.getChannel()); channel.setDiscardOwnMessages(true); return new JGroupsRemoteConnection(this.rcm, channel, isLocalConnectionBeingCreated); } catch (Exception ex) { throw RemoteCommandManagerException.errorCreatingJGroupsConnection(this.configFile, ex); } }