I have setup a cluster for Coherence in WebLogic 12c (12.2.1.2) running as UNICAST.
I have a single server setup for now and the caching is working in my application fine using local storage.
I was wondering how to attach to my cluster in Weblogic using the command line utility?
I tried this below from a Window Command Prompt:
>java -Dtangosol.coherence.cacheconfig=C:\Weblogic_12212\user_projects\domains\OrderBroker_16.1\conf\coherence-cache-config.xml -Dtangosol.coherence.cluster=OrderBroker -Dtangosol.coherence.localhost=127.0.0.1 -Dtangosol.coherence.clusterport=65001 -Dtangosol.coherence.distributed.localstorage=true -jar coherence.jar
Console Output:
When it starts up it stops and exits out of the command line utility with the console output shown below:
C:\Weblogic_12212\coherence\lib>java -Dtangosol.coherence.cacheconfig=C:\Weblogic_12212\user_projects\domains\OrderBroker_16.1\conf\coherence-cache-config.xml -Dtangosol.coherence.cluster=OrderBroker -Dtangosol.coherence.localhost=127.0.0.1 -Dtangosol.coherence.clusterport=65001 -Dtangosol.coherence.distributed.localstorage=true -jar coherence.jar
2016-11-21 10:12:00.051/0.503 Oracle Coherence 12.2.1.2.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/C:/Weblogic_12212/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2016-11-21 10:12:00.113/0.564 Oracle Coherence 12.2.1.2.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/C:/Weblogic_12212/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2016-11-21 10:12:00.114/0.565 Oracle Coherence 12.2.1.2.0 <D5> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
2016-11-21 10:12:00.117/0.568 Oracle Coherence 12.2.1.2.0 <D5> (thread=main, member=n/a): Optional configuration override "cache-factory-config.xml" is not specified
2016-11-21 10:12:00.118/0.568 Oracle Coherence 12.2.1.2.0 <D5> (thread=main, member=n/a): Optional configuration override "cache-factory-builder-config.xml" is not specified
2016-11-21 10:12:00.118/0.569 Oracle Coherence 12.2.1.2.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
Oracle Coherence Version 12.2.1.2.0 Build 65221
Grid Edition: Development mode
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
2016-11-21 10:12:00.326/0.777 Oracle Coherence GE 12.2.1.2.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/C:/Weblogic_12212/user_projects/domains/OrderBroker_16.1/conf/coherence-cache-config.xml"
2016-11-21 10:12:00.983/1.435 Oracle Coherence GE 12.2.1.2.0 <Info> (thread=main, member=n/a): Created cache factory com.tangosol.net.ExtensibleConfigurableCacheFactory
2016-11-21 10:12:00.993/1.444 Oracle Coherence GE 12.2.1.2.0 <Info> (thread=main, member=n/a):
Services
(
)
Started DefaultCacheServer...
This is my cluster config:
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-coherence xmlns="http://xmlns.oracle.com/weblogic/weblogic-coherence" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-coherence weblogic-coherence.xsd">
<name>OrderBroker</name>
<coherence-cluster-params>
<cluster-listen-port>7574</cluster-listen-port>
<clustering-mode>unicast</clustering-mode>
</coherence-cluster-params>
</weblogic-coherence>
Section from config.xml for WebLogic for cluster (Note: I am running my app deployed to the admin server and had added my Admin Server to the cluster I setup)
...
<server>
<name>AdminServer</name>
<ssl>
<name>AdminServer</name>
<listen-port>7002</listen-port>
</ssl>
<listen-port>7013</listen-port>
<listen-address></listen-address>
<server-start>
<name>AdminServer</name>
<arguments>-Xms768m -Xmx1024m -XX:MaxPermSize=256m -Dlog4j.configurationFile=C:\Weblogic_12212\user_projects\domains\OrderBroker_16.1\conf\log4j2.xml -Dlocate.uri=http://localhost:7013</arguments>
</server-start>
<web-service>
<name>AdminServer</name>
<web-service-persistence>
<name>AdminServer</name>
<web-service-logical-store>
<name>WseeStore</name>
<persistence-strategy>LOCAL_ACCESS_ONLY</persistence-strategy>
<request-buffering-queue-jndi-name>weblogic.wsee.BufferedRequestQueue</request-buffering-queue-jndi-name>
<response-buffering-queue-jndi-name>weblogic.wsee.BufferedResponseQueue</response-buffering-queue-jndi-name>
</web-service-logical-store>
</web-service-persistence>
</web-service>
<coherence-cluster-system-resource>OrderBroker</coherence-cluster-system-resource>
<coherence-member-config>
<unicast-listen-address>127.0.0.1</unicast-listen-address>
<unicast-listen-port>65001</unicast-listen-port>
<unicast-port-auto-adjust>false</unicast-port-auto-adjust>
<local-storage-enabled>true</local-storage-enabled>
<coherence-web-local-storage-enabled>false</coherence-web-local-storage-enabled>
<coherence-web-federated-storage-enabled>false</coherence-web-federated-storage-enabled>
</coherence-member-config>
</server>
<server>
<name>orderbroker_ms1</name>
<ssl>
<name>orderbroker_ms1</name>
</ssl>
<listen-port>7003</listen-port>
<web-server>
<name>orderbroker_ms1</name>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address>localhost</listen-address>
<server-start>
<name>orderbroker_ms1</name>
<username>weblogic</username>
<password-encrypted>{AES}bFPTj4rkMt9RI+j7k2lu15c97paxaTHKpgZ8J34HQzE=</password-encrypted>
</server-start>
<server-diagnostic-config>
<wldf-diagnostic-volume>Low</wldf-diagnostic-volume>
</server-diagnostic-config>
</server>
...
Any help or a document would be greatly appreciated.
Thanks,
Tim