The below code can be used to monitor the non heap usage of the JVM. You can use this code
Continue readingTag: JMX
Using JConsole to view JMX MBeans of Weblogic Server
1. Set the environment using setWLSEnv.cmd 2. Start JMX Console using the below arguments and connect to the local/remote process.
Continue readingSample JMX Code to retrieve JDBC Connection Pool Parameter
import java.io.IOException; import java.util.*; import javax.management.*; import javax.management.remote.*; import javax.naming.Context; import weblogic.jndi.Environment; import weblogic.management.*; public class JDBCConnectionPoolProperties { static MBeanServerConnection
Continue readingAutomating application deployment on Weblogic Server.
In this article we will demonstrate three ways of deployment and undeployment on Weblogic Server 1. Using WLST 2. Using
Continue readingJMX Policy Editor to modify Deployer role
The below post describes how we can modify the default policy settings for the Deployer role users. By default the
Continue readingList Users and Groups in Weblogic using JMX
There are times when an Application Needs to interact with the Weblogic Server Embedded LDAP Server and Add/Modify/List users or
Continue readingJMS Resources using JMX
import java.io.IOException; import java.net.MalformedURLException; import java.util.ArrayList; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import javax.management.MBeanServerConnection; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import javax.management.remote.JMXConnector;
Continue readingRegistering Custom MBeans with Weblogic Server
Registering Custom Mbeans with Weblogic Server. Example.java package jmxMbeans; public class Example implements ExampleMBean { public void sayHello(String str) {
Continue readingForce Shutingdown WLS Using JMX
import java.io.IOException; import java.net.MalformedURLException; import java.util.Hashtable; import javax.management.MBeanServerConnection; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorFactory; import javax.management.remote.JMXServiceURL; import weblogic.management.runtime.*;
Continue reading