My plan is to learn a new thing every two to three weeks. By sharing on this blog, will help me focus and hopefully help some readers. This is a hobby that I have been trying to exercise for quite a while now, but never could get it going for different reasons. Thanks
20120924
How to set and Start Coherence with WLST
Oracle Weblogic Server - Version 10.3.4 to 12.1.1.0
Oracle Coherence - Version 3.6.0 to 3.7.1.x
Different ways to start Coherence Servers using WLST?
Pre-requirements:
Node Manager should be running and please make sure that you have the following jar files on your classpath;
/home/Oracle/Middleware/121cJar/modules/features/weblogic.server.modules.coherence.server_12.1.1.0.jar:/home/Oracle/Middleware/121cJar/coherence-java-3.7.1.0b27797/coherence/lib/coherence.jar
Use the following links to create and set the Coherence Servers using the Admin Console:
http://docs.oracle.com/cd/E25054_01/apirefs.1111/e13952/taskhelp/coherence/CreateCoherenceServers.html
http://docs.oracle.com/cd/E25054_01/apirefs.1111/e13952/taskhelp/coherence/ConfigureStartupArgumentsForCoherenceServers.html
Ans1: Using the nmStart():
1. Start the WLST tool by setting the environmnet from Domain/bin directory:
$. bin/setDomainEnv.sh (cmd if Windows)
$java weblogic.WLST
2. Connect With the NM;
wls:/offline> nmConnect("weblogic","Welcome1","localhost","5556","12cjar","/home/Oracle/Domains/12cjar")
3. Start the Coherence server in which is named here as Server-0;
wls:/nm/12cjar> nmStart("Server-0",serverType="Coherence")
4. The Coherence server should be started:
Starting server Server-0 ...
Successfully started server Server-0 ...
Ans2: Now let use the CoherenceServerLifeCycleRuntimeMBean to start:
1. Set the domain environment from your WLS domain and run the following:
$java weblogic.WLST
2. Connect with your running AdminServer.
connect()
3. goto your domain Runtime.
domainRuntime()
4. goto your Coherence MBeam home.
cd("CoherenceServerLifeCycleRuntimes/Server-0")
5. and run the server using this command:
cmo.start()
The Server should be running by now....
Ans3: Goto the link bellow and you should see the startCoh.py and stopCoh.py, then is the matter of using the following command:
1. Create the files stopCoh.py and startCoh.py;
2. Goto bin directory of your domain.
3. Set your domian environments: $ . setDomainEnv.sh
4. Go back to the directory in which you created the two py files.
5. and run for example:
$java weblogic.WLST startCoh.py
ref: http://docs.oracle.com/cd/E24329_01/web.1211/e24442/coh_wls.htm#CIHDDAAE
Ans4: The Most common way is to use the Console, for that you can use Oracle's documentation:
http://docs.oracle.com/cd/E25054_01/apirefs.1111/e13952/taskhelp/coherence/StartCoherenceServers.html
Subscribe to:
Posts (Atom)