Start and stop coherence from WLST

Many people are used to work with WLST to administrate weblogic resources, now we have that weblogic interact with coherence and there are many new features on the core to administrate COH resources, here an example with WLST.

1.- Have the coherence jars set on Class path; use the Admin console --> Coherence Servers -->$YOUR_SERVER --> Configuration -->Server Start to set:

Example:
/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

2. Create add a Machine on Coherence server.

Then

3. Set the domain environment from your WLS domain and run the following (By running setDomainEnv.sh or setDomainEnv.cmd):

$java weblogic.WLST

4. Connect with your running AdminServer.

connect()

5.Go to your domain Runtime.

domainRuntime()

6. Go to your Coherence MBeam home.

cd('CoherenceServerLifeCycleRuntimes/Server-0')

7. and run the server using this command:

cmo.start()

or

cmo.stop()

I hope this helps to create script to administrate Coherence servers dynamically with WLST.

For more information review the following link :

http://docs.oracle.com/cd/E17904_01/web.1111/e16517/coh_wls.htm

Regards,

/Antonio

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Antonio De Juan Image

I was formerly a Senior Technical Support Engineer in the Middleware Application Server Team. I worked supporting Weblogic Server, Java EE, Jrockit, Coherence among other Oracle products.
You can find my new blog at :
http://antoniodejuan.wordpress.com/
Oracle WebLogic

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today