skip to main | skip to sidebar

Java Programs and Examples with Output

Pages

▼
 
  • RSS
  • Twitter
Thursday, September 20, 2012

Weblogic Monitoring Script

Posted by Admin at 12:20 PM – 0 comments
 

The code snippet allows to monitor weblogic properties from a standalone code by fetching the MBean servers used by Weblogic. It allows you to monitor key elements such as Threads, JDBC Connections used, EJB, Java Heap etc. The code shows some of these MBean servers.


// JDBConnections
   JDBCConnectionPoolRuntimeMBean mbeanJDBCConnectionPoolRuntime;
   mbeanSet = home.getMBeansByType("JDBCConnectionPoolRuntime");
   mbeanIterator = mbeanSet.iterator();

   while (mbeanIterator.hasNext()) {
    mbeanJDBCConnectionPoolRuntime = (JDBCConnectionPoolRuntimeMBean) mbeanIterator
      .next();
    String poolName = mbeanJDBCConnectionPoolRuntime.getName();
     ShowInfoJDBCRuntime(mbeanJDBCConnectionPoolRuntime);
   }




Leave a Reply

Newer Post Older Post
Subscribe to: Post Comments ( Atom )
  • Popular
  • Recent
  • Archives
Powered by Blogger.
 
 
 
© 2011 Java Programs and Examples with Output | Designs by Web2feel & Fab Themes

Bloggerized by DheTemplate.com - Main Blogger