WebLogic 10, as seen through wlshell
Paco Gomez's Blog |
July 11, 2007 2:19 PM
|
Comments (4)
In this first entry of the series, I will show how to connect and browse a WebLogic domain configuration.
WebLogic Server 9 and 10 changed internally the JMX implementation, which is now based on JMX 1.2 and JMX Remote API 1.0. But the change most obvious to users is the way how MBeans are organized and used to manage a domain.
As in previous releases of wlshell, users can still connect using a simple URL:
connect localhost:7001 weblogic weblogic
But the Administration Server has now three MBean servers: Domain, Edit and Runtime. When using the traditional URL (t3://host:port) wlshell connects to all MBean servers defined in that WebLogic server instance. It uses a prefix to differentiate between JMX domains defined in each MBean server. It prepends "domain.", "edit." and "runtime." to the names of the JMX domains defined in Domain, Edit and Runtime MBean servers respectively.
The explorer shows all the JMX domains available in the connection:

The JMX domain "domain.com.bea:" gives you information about what is configured on the WLS domain:

In the next entry, I will describe how to modify a WebLogic domain configuration.
Have fun!
Further reading:
Understanding WebLogic Server MBeans
wlshell web site
Using wlshell with WebLogic
Comments
Comments are listed in date ascending order (oldest first) | Post Comment
-
Thank you for this tool. I can quite honestly tell you that it has saved me many hours of writing Java code to monitor weblogic's parameters.
However, I'd like to request two features :-)
I use the "get -r" regularly. If there was an option to get where it would repeat for a certain amount of time, or, for a certain number of iterations, it'd be great.
Second feature request!! functions - so I can organize code better!
Once again, thanks for your most brilliant and excellent work on wlshell.
Posted by: venkitaswaran on July 15, 2007 at 6:07 PM
-
Thank you.
- get -r is available, see here for details.
- while they are not exactly functions, you can save scripts on files and use the read command to reuse them.
Cheers,
Posted by: paco on July 16, 2007 at 11:21 AM
-
Paco, Thanks for that reply.
Let me clarify on the get -r. Currently get -r runs until the Enter key is pressed. However, for instance, if there was a new flag called -n, where -n indicated the number of iterations to run,and it would stop after those iterations. That way, I could run a script without human intervention.
In any case, I still appreciate all the efforts that you've put into this tool!
Posted by: venkitaswaran on July 16, 2007 at 12:35 PM
-
That can be done with a control statement like this:
for $i in 1 to 60
get $attr
sleep 1000
end
Thanks,
Posted by: paco on July 16, 2007 at 10:49 PM
|