Sample 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 connection; static JMXConnector connector; static ObjectName service; public static void main(String[] args) { try { JMXServiceURL serviceURL = new JMXServiceURL("t3", "localhost", 80, "/jndi/weblogic.management.mbeanservers.domainruntime"); service = new ObjectName( "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean"); Hashtable h

Continue reading »

Monitoring JDBC Datasource Runtime Attributes using WLST

Step 1 :- Set the environment C:\bea103\user_projects\domains\prpc612\bin>setDomainEnv.bat Step 2:- Connect to server and browse to the JDBCDataSourceRuntime MBean C:\bea103\user_projects\domains\prpc612>java weblogic.WLST Initializing WebLogic Scripting Tool (WLST) … Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands wls:/offline> connect() Please enter your username [weblogic] : Please enter

Continue reading »