Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
===========
This solution explains how to run a standaloneCcoherence cluster (Multicast or WKA) using a Java command without involving BE.
Environment:
===========
TIBCO Product name and version: TIBCO BusinessEvents (BE) All versions
Operating System(s): All
Resolution:
==========
Scenario: BusinessEvents engine using Coherence for cluster management and throwing exceptions. To debug whether the issue is with BE or Coherence, running the Coherence.jar using a Java command might be helpful.
Multicast command:
java -Dtangosol.coherence.clusteraddress="<cluster address>" -Dtangosol.coherence.clusterport=<cluster port> -Dtangosol.coherence.localhost=<IP address> -jar "<path to coherence.jar>"
You can add more arguments to the command based on your requirement such as the following:
-Dtangosol.coherence.log.level=9 (debug level for coherence)
-Dtangosol.coherence.ttl=10
-Dtangosol.coherence.guard.timeout=0
WKA command:
java -Dtangosol.coherence.override=<path to coherence-override.xml> -Dtangosol.coherence.localport=<port> -jar <path to coherence.jar>
Sample Override XML
<?xml version='1.0'?>
<coherence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/coherence/coherence-operational-config" xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-operational-config coherence-operational-config.xsd">
<cluster-config>
<unicast-listener>
<socket-provider system-property="tangosol.coherence.socketprovider">tcp</socket-provider>
<well-known-addresses>
<socket-address id="1">
<address system-property="tangosol.coherence.wka1"><IP address1></address>
<port system-property="tangosol.coherence.wka1.port"><Port1></port>
</socket-address>
<socket-address id="2">
<address system-property="tangosol.coherence.wka2"><IP address2></address>
<port system-property="tangosol.coherence.wka2.port"><Port2></port>
</socket-address>
</well-known-addresses>
<port-auto-adjust system-property="tangosol.coherence.localport.adjust">false</port-auto-adjust>
</unicast-listener>
</cluster-config>
</coherence>
Example:
If the issue is with joining an existing cluster in BE, start another instance using the same (Java) command to check if the second instance can join the cluster.