Monthly Archive: January 2011

Finding jar files using JarScan

Sometimes we need to know in which jar file a particular class resides, and the location of that jar file.

We can find out using jarscan utility.

It can be downloaded from here

I had to find out which jar file contains this particular class

weblogic.security.spi.AuthenticationProviderV2

I downloaded the jar file from the link given above and placed in bea installation directory and executed the following command

java -jar jarscan.jar -class weblogic.security.spi.AuthenticationProviderV2

I got the output as follows

Looking for class(es): [weblogic.security.spi.AuthenticationProviderV2]

Processed 965 directories containing 22670 files
found 164 libraries under the directory: C:\bea1032\wlserver_10.3\server

1) ojdbc5.jar [C:\bea1032\wlserver_10.3\server\adr\ojdbc5.jar]
2) ojdbc6.jar [C:\bea1032\wlserver_10.3\server\adr\ojdbc6.jar]
3) mysql-connector-java-commercial-5.0.3-bin.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\mysql\mysql-connector-java-commercial-5.0.3-bin.jar]
4) ojdbc5.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc5.jar]
5) ojdbc5_g.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc5_g.jar]
6) ojdbc6.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6.jar]
7) ojdbc6dms.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar]
8) ojdbc6_g.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6_g.jar]
9) orai18n-mapping.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\oracle\11g\orai
18n-mapping.jar]
10) orai18n.jar [C:\bea1032\wlserver_10.3\server\ext\jdbc\oracle\11g\orai18n.jar]
11) weblogic-tags.jar [C:\bea1032\wlserver_10.3\server\ext\weblogic-tags.jar]
12) weblogic-vtags.jar [C:\bea1032\wlserver_10.3\server\ext\weblogic-vtags.jar]
13) jarscan.jar [C:\bea1032\wlserver_10.3\server\jarscan.jar]
14) api.jar [C:\bea1032\wlserver_10.3\server\lib\api.jar]
15) aqapi.jar [C:\bea1032\wlserver_10.3\server\lib\aqapi.jar]
16) bea_wls_async_response.jar [C:\bea1032\wlserver_10.3\server\lib\bea_wls_async_response.jar]
17) bea_wls_remote_deployer.jar [C:\bea1032\wlserver_10.3\server\lib\bea_wls_remote_deployer.jar]
18) wlUserConfigCompatibility.jar [C:\bea1032\wlserver_10.3\server\lib\compatibility\wlUserConfigCompatibility.jar]
19) compatibility-security-l10n.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\compatibility-security-l10n.jar]
20) compatibility-security.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\compatibility-security.jar]
21) core-connector.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\core-connector.jar]
22) core-ejb.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\core-ejb.jar]
23) core-jms.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\core-jms.jar]
24) jolt-l10n.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\jolt-l10n.jar]
25) jolt.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\jolt.jar]
26) wtc-l10n.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\wtc-l10n.jar]
27) wtc.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\autodeploy\wtc.jar]

28) diagnostics-console-extension-l10n.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\diagnostics-console-extension-l10n.jar]
29) diagnostics-console-extension.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\diagnostics-console-extension.jar]
30) spring-console-l10n.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\spring-console-l10n.jar]
31) spring-console.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\spring-console.jar]
32) weblogic-sca-console.jar [C:\bea1032\wlserver_10.3\server\lib\console-ext\weblogic-sca-console.jar]
33) com.bea.core.process_5.4.0.0.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\com.bea.core.process_5.4.0.0.jar]
34) commons-beanutils.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\commons-beanutils.jar]
35) commons-codec-1.3.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\commons-codec-1.3.jar]
36) commons-digester.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\commons-digester.jar]
37) commons-fileupload.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\commons-fileupload.jar]
38) commons-logging-1.0.4.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\commons-logging-1.0.4.jar]
39) commons-validator.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\commons-validator.jar]
40) jakarta-oro.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\jakarta-oro.jar]
41) jstl.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\jstl.jar]
42) log4j-1.2.8.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\log4j-1.2.8.jar]
43) netuix_common.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\netuix_common.jar]
44) netuix_schemas.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\netuix_schemas.jar]
45) netuix_system.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\netuix_system.jar]
46) p13n-schemas.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\p13n-schemas.jar]
47) p13n_common.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\p13n_common.jar]
48) p13n_system.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\p13n_system.jar]
49) standard.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\standard.jar]
50) struts.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\struts.jar]
51) wsrp-client.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\wsrp-client.jar]
52) wsrp-common.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\APP-INF\lib\wsrp-common.jar]
53) beehive-netui-core.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\beehive-netui-core.jar]
54) beehive-netui-tags.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\beehive-netui-tags.jar]
55) console.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\console.jar]
56) jh.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\jh.jar]
57) l10n_taglib.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\l10n_taglib.jar]
58) netuix_common_web.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\netuix_common_web.jar]
59) netuix_servlet.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\netuix_servlet.jar]
60) prefs-spi.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\prefs-spi.jar]
61) render_taglib.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\render_taglib.jar]
62) skeleton_taglib.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\skeleton_taglib.jar]
63) standard.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\standard.jar]
64) struts-adapter.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\struts-adapter.jar]
65) struts.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\consolehelp\WEB-INF\lib\struts.jar]
66) beehive-controls.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\beehive-controls.jar]
67) beehive-netui-core.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\beehive-netui-core.jar]
68) beehive-netui-tags.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\beehive-netui-tags.jar]
69) client_taglib.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\client_taglib.jar]
70) console-de.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-de.jar]
71) console-es.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-es.jar]
72) console-fr.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-fr.jar]
73) console-it.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-it.jar]
74) console-ja.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-ja.jar]
75) console-ko.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-ko.jar]
76) console-page-spec.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-page-spec.jar]
77) console-pt_BR.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-pt_BR.jar]
78) console-zh_CN.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-zh_CN.jar]
79) console-zh_TW.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console-zh_TW.jar]
80) console.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\console.jar]
81) faces-adapter.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\faces-adapter.jar]
82) jsf-api.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\jsf-api.jar]
83) jsf-impl.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\jsf-impl.jar]
84) l10n_taglib.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\l10n_taglib.jar]
85) netui-adapter.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\netui-adapter.jar]
86) netuix_common_web.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\netuix_common_web.jar]
87) netuix_servlet.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\netuix_servlet.jar]
88) prefs-spi.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\prefs-spi.jar]
89) render_taglib.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\render_taglib.jar]
90) skeleton_taglib.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\skeleton_taglib.jar]
91) standard.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\
lib\standard.jar]
92) struts-adapter.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\struts-adapter.jar]
93) struts.jar [C:\bea1032\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\struts.jar]
94) diagnostics-agent.jar [C:\bea1032\wlserver_10.3\server\lib\diagnostics-agent.jar]
95) EccpressoAsn1.jar [C:\bea1032\wlserver_10.3\server\lib\EccpressoAsn1.jar]
96) EccpressoCore.jar [C:\bea1032\wlserver_10.3\server\lib\EccpressoCore.jar]
97) EccpressoJcae.jar [C:\bea1032\wlserver_10.3\server\lib\EccpressoJcae.jar]
98) jcom.jar [C:\bea1032\wlserver_10.3\server\lib\jcom.jar]
99) jmsadapter.jar [C:\bea1032\wlserver_10.3\server\lib\jms-local-adp\jmsadapter.jar]
100) jmsadapter.jar [C:\bea1032\wlserver_10.3\server\lib\jms-notran-adp\jmsadapter.jar]
101) jmsadapter.jar [C:\bea1032\wlserver_10.3\server\lib\jms-notran-adp51\jmsadapter.jar]
102) jmsadapter.jar [C:\bea1032\wlserver_10.3\server\lib\jms-xa-adp\jmsadapter.jar]
103) jms51-interop.jar [C:\bea1032\wlserver_10.3\server\lib\jms51-interop.jar]
104) jrmp.jar [C:\bea1032\wlserver_10.3\server\lib\jrmp.jar]
105) jrmpclient.jar [C:\bea1032\wlserver_10.3\server\lib\jrmpclient.jar]
106) jsafeFIPS.jar [C:\bea1032\wlserver_10.3\server\lib\jsafeFIPS.jar]
107) cssWlSecurityProviders.jar [C:\bea1032\wlserver_10.3\server\lib\mbeantypes\cssWlSecurityProviders.jar]
108) saml2CredentialMapper.jar [C:\bea1032\wlserver_10.3\server\lib\mbeantypes\saml2CredentialMapper.jar]
109) saml2IdentityAsserter.jar [C:\bea1032\wlserver_10.3\server\lib\mbeantypes\saml2IdentityAsserter.jar]
110) systemPasswordValidatorProvider.jar [C:\bea1032\wlserver_10.3\server\lib\mbeantypes\systemPasswordValidatorProvider.jar]
111) wlManagementImplSource.jar [C:\bea1032\wlserver_10.3\server\lib\mbeantypes\wlManagementImplSource.jar]
112) wlManagementMBean.jar [C:\bea1032\wlserver_10.3\server\lib\mbeantypes\wlManagementMBean.jar]
113) xacmlSecurityProviders.jar [C:\bea1032\wlserver_10.3\server\lib\mbeantypes\xacmlSecurityProviders.jar]
114) mejb.jar [C:\bea1032\wlserver_10.3\server\lib\mejb.jar]
115) mysql-connector-java-commercial-5.0.3-bin.jar [C:\bea1032\wlserver_10.3\ser
ver\lib\mysql-connector-java-commercial-5.0.3-bin.jar]
116) ojdbc6.jar [C:\bea1032\wlserver_10.3\server\lib\ojdbc6.jar]
117) diagnostics-binding.jar [C:\bea1032\wlserver_10.3\server\lib\schema\diagnostics-binding.jar]
118) diagnostics-image-binding.jar [C:\bea1032\wlserver_10.3\server\lib\schema\diagnostics-image-binding.jar]
119) weblogic-domain-binding-compatibility.jar [C:\bea1032\wlserver_10.3\server\lib\schema\weblogic-domain-binding-compatibility.jar]
120) weblogic-domain-binding.jar [C:\bea1032\wlserver_10.3\server\lib\schema\weblogic-domain-binding.jar]
121) weblogic-de.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-de.jar]
122) weblogic-es.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-es.jar]
123) weblogic-fr.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-fr.jar]
124) weblogic-it.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-it.jar]
125) weblogic-ja.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-ja.jar]
126) weblogic-ko.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-ko.jar]
127) weblogic-L10N.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-L10N.jar]
128) weblogic-pt_BR.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-pt_BR.jar]

129) weblogic-spring.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-spring.jar]
130) weblogic-zh_CN.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-zh_CN.jar]
131) weblogic-zh_TW.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic-zh_TW.jar]
132) weblogic.jar [C:\bea1032\wlserver_10.3\server\lib\weblogic.jar]
133) webserviceclient+ssl.jar [C:\bea1032\wlserver_10.3\server\lib\webserviceclient+ssl.jar]
134) webserviceclient.jar [C:\bea1032\wlserver_10.3\server\lib\webserviceclient.jar]
135) webservices.jar [C:\bea1032\wlserver_10.3\server\lib\webservices.jar]
136) wl-j2ee-client.jar [C:\bea1032\wlserver_10.3\server\lib\wl-j2ee-client.jar]
137) wlcipher.jar [C:\bea1032\wlserver_10.3\server\lib\wlcipher.jar]
138) wlclient.jar [C:\bea1032\wlserver_10.3\server\lib\wlclient.jar]
139) wlcommons-logging.jar [C:\bea1032\wlserver_10.3\server\lib\wlcommons-logging.jar]
140) wlconnector.jar [C:\bea1032\wlserver_10.3\server\lib\wlconnector.jar]
141) wldb2.jar [C:\bea1032\wlserver_10.3\server\lib\wldb2.jar]
142) wldeploy.jar [C:\bea1032\wlserver_10.3\server\lib\wldeploy.jar]
143) wlinformix.jar [C:\bea1032\wlserver_10.3\server\lib\wlinformix.jar]
144) wljarbuilder.jar [C:\bea1032\wlserver_10.3\server\lib\wljarbuilder.jar]
145) wljmsclient.jar [C:\bea1032\wlserver_10.3\server\lib\wljmsclient.jar]
146) wljmxclient.jar [C:\bea1032\wlserver_10.3\server\lib\wljmxclient.jar]
147) wllog4j.jar [C:\bea1032\wlserver_10.3\server\lib\wllog4j.jar]
148) wlnmclient.jar [C:\bea1032\wlserver_10.3\server\lib\wlnmclient.jar]
149) wls-api.jar [C:\bea1032\wlserver_10.3\server\lib\wls-api.jar]
150) wlsafclient.jar [C:\bea1032\wlserver_10.3\server\lib\wlsafclient.jar]
151) wlsqlserver.jar [C:\bea1032\wlserver_10.3\server\lib\wlsqlserver.jar]
152) wlsybase.jar [C:\bea1032\wlserver_10.3\server\lib\wlsybase.jar]
153) wlthint3client.jar [C:\bea1032\wlserver_10.3\server\lib\wlthint3client.jar]
154) wlw-langx-ja.jar [C:\bea1032\wlserver_10.3\server\lib\wlw-langx-ja.jar]
155) wlw-langx-ko.jar [C:\bea1032\wlserver_10.3\server\lib\wlw-langx-ko.jar]
156) wlw-langx-zh_CN.jar [C:\bea1032\wlserver_10.3\server\lib\wlw-langx-zh_CN.jar]
157) wlw-langx-zh_TW.jar [C:\bea1032\wlserver_10.3\server\lib\wlw-langx-zh_TW.jar]
158) wlw-langx.jar [C:\bea1032\wlserver_10.3\server\lib\wlw-langx.jar]
159) wlw-wsee-soapfault.jar [C:\bea1032\wlserver_10.3\server\lib\wlw-wsee-soapfault.jar]
160) wseeclient.jar [C:\bea1032\wlserver_10.3\server\lib\wseeclient.jar]
161) wseejb.jar [C:\bea1032\wlserver_10.3\server\lib\wsee_scj\wseejb.jar]
162) wsse.jar [C:\bea1032\wlserver_10.3\server\lib\wsse.jar]
163) xmlx.jar [C:\bea1032\wlserver_10.3\server\lib\xmlx.jar]
164) xqrl.jar [C:\bea1032\wlserver_10.3\server\lib\xqrl.jar]

searching these jarfiles now ….

===============================================
Found: weblogic.security.spi.AuthenticationProviderV2
Class: weblogic.security.spi.AuthenticationProviderV2
Package: weblogic.security.spi
Library Name: wls-api.jar
Library Path: C:\bea1032\wlserver_10.3\server\lib\wls-api.jar
===============================================

Search took: 10286 milliseconds.

Enabling and Disabling Weblogic Admin Console

Disabling and Enabling Admin Console

Many at times for most of our administration work including the changes (deployments, start/stop of servers, etc) or configurations (JMS, creation/deletion/editing of our servers, etc) we use our weblogic admin console.

But, for security reasons some of the banking companies for its core banking applications prefer to disable the admin console in its banking applications.

This short and sweet article mainly targets to present you on how to enable and disable your admin console:

Disabling your Admin Console:

We can disable our weblogic admin console in two different ways

1)      Admin console

2)      Weblogic Scripting Tool

From Admin console:-

To disable access to the Administration Console:

  1. After you log in to admin console click Lock & Edit.
  2. In the left pane of the Console, under Domain Structure, select the domain name.
  3. Select Configuration > General, and click Advanced at the bottom of the page.
  4. Deselect Console Enabled.
  5. Click Save.
  6. To activate these changes, click Activate Changes.

From WLST:-

connect(“weblogic“,”weblogic“,”t3://localhost:7001“)

edit()

startEdit()

cmo.setConsoleEnabled(false)

save()

activate()

disconnect()

exit()

Enabling the Admin Console:

After we disable the admin console we can enable it again by using WLST.

Following are the steps on the same:

connect(“weblogic“,”weblogic“,”t3://localhost:7001“)

edit()

startEdit()

cmo.setConsoleEnabled(true)

save()

activate()

disconnect()

exit()

Note: Here,

1)      weblogic and weblogic are the user id and password of admin console.

2)      t3://localhost:7001 is the admin console URL

3)      After we enable/disable the admin console RESTART your admin server

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 your password [weblogic] :
Please enter your server URL [t3://localhost:7001] :t3://localhost:7003
Connecting to t3://localhost:7003 with userid weblogic …
Successfully connected to managed Server ‘MS0’ that belongs to domain ‘prpc612’.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

wls:/prpc612/serverConfig> serverRuntime()
Location changed to serverRuntime tree. This is a read-only tree with ServerRunt
imeMBean as the root.
For more help, use help(serverRuntime)
wls:/prpc612/serverRuntime> cd(‘JDBCServiceRuntime’)
wls:/prpc612/serverRuntime/JDBCServiceRuntime> cd(‘MS0’)
wls:/prpc612/serverRuntime/JDBCServiceRuntime/MS0> cd(‘JDBCDataSourceRuntimeMBeans’)
wls:/prpc612/serverRuntime/JDBCServiceRuntime/MS0/JDBCDataSourceRuntimeMBeans> cd(‘MyDs’)
gaRules> cmo.getActiveConnectionsCurrentCount()
1

The other JDBC Datasource Runtime attributes that can be monitored are listed below.

wls:/prpc612/serverRuntime/JDBCServiceRuntime/MS0/JDBCDataSourceRuntimeMBeans/PegaRules> ls()
dr– JDBCDriverRuntime
dr– LastTask
dr– WorkManagerRuntimes

-r– ActiveConnectionsAverageCount 1
-r– ActiveConnectionsCurrentCount 0
-r– ActiveConnectionsHighCount 5
-r– ConnectionDelayTime 627
-r– ConnectionsTotalCount 5
-r– CurrCapacity 5
-r– CurrCapacityHighCount 4
-r– DeploymentState 2
-r– Enabled true
-r– FailedReserveRequestCount 0
-r– FailuresToReconnectCount 0
-r– HighestNumAvailable 5
-r– HighestNumUnavailable 0
-r– LastTask null
-r– LeakedConnectionCount 0
-r– ModuleId PegaRules
-r– Name PegaRules
-r– NumAvailable 5
-r– NumUnavailable 0
-r– PrepStmtCacheAccessCount 11852
-r– PrepStmtCacheAddCount 420
-r– PrepStmtCacheCurrentSize 50
-r– PrepStmtCacheDeleteCount 370
-r– PrepStmtCacheHitCount 11432
-r– PrepStmtCacheMissCount 420
-r– Properties {serverName=localhost, SID=prpc612, portNumber=1521, user=SYSTEM}
-r– ReserveRequestCount 11844
-r– State Running
-r– Type JDBCDataSourceRuntime
-r– VersionJDBCDriver oracle.jdbc.OracleDriver
-r– WaitSecondsHighCount 0
-r– WaitingForConnectionCurrentCount 0
-r– WaitingForConnectionFailureTotal 0
-r– WaitingForConnectionHighCount 0
-r– WaitingForConnectionSuccessTotal 4
-r– WaitingForConnectionTotal 0
-r– WorkManagerRuntimes null

-r-x clearStatementCache Void :
-r-x dumpPool Void :
-r-x dumpPoolProfile Void :
-r-x forceShutdown Void :
-r-x forceSuspend Void :
-r-x poolExists Boolean : String(name)
-r-x preDeregister Void :
-r-x reset Void :
-r-x resume Void :
-r-x shrink Void :
-r-x shutdown Void :
-r-x start Void :
-r-x suspend Void :
-r-x testPool String :