Thursday Jul 26, 2012

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

Friday Dec 09, 2011

Exalogic: the future is now.

Playing around - wlstonweb

I developed this tool I called wlstonweb, basically is a web application that emulate WLST (Weblogic scripting tool) on a web interface, this application has two main features :

1 .- Execute WLST commands Sessions via a web browser

2.- Run Scripts Management via a web browser and administrate them.

 Basically the tool was developed  by using the following components :

.- Servlets, JSP.

.- Ajax/Json.

.- Interpreter = Wrapper.

 This has the same concept of a chat room :

.- Send a message --> Keep the message --> Release the message.

Then we have an interpreter of the commands :

.- Send the command --> Keep the command and interpreter --> Release the results of the command.

and if we apply the MVC concept to this we have:

 .- Html page Ajax call --> Servlet --> Intepreter / retun json format--> Servlet reponse--> Html page json reponse.

That is the whole concept.

Session via web browser.

and we can use all the features provided by WLST on a web interface, that allow us to use simple or complex commands remotely without the necessity to stay on the same net where is located your weblogic server installation.


When I have time I'm going to explain step by step how I developed the tool and I will post part of the code and feel free to leave your comment and ideas to improve this tool.

Click here to download

Best regards

/Antonio.



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
« July 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
31
  
       
Today