• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java (JMX) vs WLST

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,


I know that there are two ways to admin weblogic server. One way is by WLST scripts which we write in WLST console. Second way is by JMX which we write in JAVA language.


I know that java language gives more flexibility but still all the scripts present in my companies Weblogic servers are WLST scripts.


Can anyone tell me about all the benefits and advantages I can have if I change them to Java (JMX) code.


One of the Flexibility is that I can implement multithreading and start multiple AdminServer (in multiple domain) at same time.


Thanks
Nitish Kumar
 
Ranch Hand
Posts: 376
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jmx is an api but you need to use wls mbeans so still it is proprietary.

wlst uses jython which generates an overhead maybe this could be an issue (at the end it connects with jmx underneath)

two different flavor that will depend on programmer profile
 
Nitish Kumar Singh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I can understand that internally WLST calls MBeans. I want to know the advantages if I use JAVA (JMX) code instead of WLST scripts. Oracle has provided two ways, there must be a reason.

1- I am writing a Linux Script and calling WLST script in it.
2- I am writitng JAVA (JMX) code and administrating weblogic.

Which of the two above will have more advantages and why?
 
German Gonzalez-Morris
Ranch Hand
Posts: 376
2
Eclipse IDE Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The reason of WLST is to use a simpler code (language) for the same task.

Java has an exponential learning curve, in the other hand, Python is very straightforward.

WLST is more focused for Administrators than developers.

Regards,

German


 
Bartender
Posts: 1152
20
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I prefer WLST (maybe called from within an ANT script) - simple reason is that its a higher level tool.
Of course if you need to do something special then JMX would be the way to go. Never needed to do so myself...
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what you are creating. For e.g., if you are creating a web app in JSP/Servlets (say for monitoring a domain), JMX is the obvious choice. Just include the wlfullclient.jar in the classpath and you are good to go.

On the other hand, if all you need is to quickly automate administration stuff like deploying apps, monitoring server health, generating alerts, stop/start servers etc then you should use WLST as it is quick and simple.

Performance wise there is hardly any difference in overhead. It would rarely be a factor in deciding between the two.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic