Accessing JDBCConnectionPoolStats via JMX

Trying to read connection pool stats via JDBCResourceMBean programmatically.
All the stats are showing as 0. Using enterprise manager I can confirm that this is not correct, the stats are showing as I expect them to. Trying to determine if there is something special I need to do when referencing the MBean. It doesn't seem to be an issue with the pool itself since EM shows correct stats. Incidentally, JConsole shows the stats as "unavailable", but does say the bean is a statistics provider. Does this indicate that EM is doing something behind the scenes to get the stats? Anyone have any ideas on what to look for or examples? Running 10.1.3.1 app server using "oracle.jdbc.driver.OracleDriver" for connection factory class.
TIA

I should add, I can see the attributes and operations for this MBean, it is only the statistics that I cannot seem to retrieve.
thanks

Similar Messages

  • Remote access of InitialContext via JMX client

    Hi,
    I'm not sure if i'm the right place here for posting my problem, but I don't know where to put it otherwise.
    I'm trying to access a JBoss datasource via JMX. The JMX code and datasource code is both placed inside a WAR file that is deployed in Jboss 5.1.
    When I access the datasource from a servlet, it runs oke but when I try to run it from jconsole I get a classnotfoundexception.
    The code where I register the MBean is:
    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
    try
    ObjectName mbeanName = new ObjectName(OBJECT_NAME);
    Test mbean = new Test();
    mbs.registerMBean(mbean, mbeanName);
    catch (Exception e)
    //handle
    The code where I get the exception is:
    Context initContext = new InitialContext(jndiProps);
    The exception is:
    javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
    These are my JNDI props:
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
    java.naming.provider.url=jnp://localhost:1099
    Any ideas?

    OK - I found another thread dealing with the problem at hand.
    http://forums.sun.com/thread.jspa?threadID=5369697
    Edited by: Christian.Yttesen on Jan 13, 2010 5:15 AM

  • Read the version of deployed EAR modules via JMX (WLS 10.0)

    Hello
    We are deploying some EAR components into a WLS 10.0. Now we want to monitor the version number of the deployed EARs via a JMX client. The version number is provided in the manifest of the EAR (Implementation-Version).
    I read through some JMX related documents by BEA and searched the web, but I could not find any information on how to read the version.
    Does anybody know how to do that or where to look in order to get the version numbers of the deployed components via JMX? Do I have to write my own MBean offering this version attribute?
    Every hint is welcomed!
    Thanks
    Toni
    Edited by: user10451156 on Oct 21, 2008 10:53 AM

    Hi, Toni.
    The input must be a externally provided version number, if you have no access to write manifest entries, or to the deployment process.
    If this version number is already set in the ear file, you can use this process inside your custom mbean (an elaboration of Benoit's suggestion)
    1 look up the application component from JMX
    * http://edocs.bea.com/wls/docs100/wlsmbeanref/mbeans/AppDeploymentMBean.html
    2 obtain the path of the ear file
    3 open a JarURLConnection to this ear
    * http://java.sun.com/javase/6/docs/api/java/net/JarURLConnection.html
    4 read the implementation version, which was already provided.
    * http://java.sun.com/javase/6/docs/api/java/util/jar/Attributes.Name.html#IMPLEMENTATION_VERSION
    Sadly, this won't pop-up on the WLS console, you'd have to write or use a custom extension to do that.
    * https://wls-console-extensions.projects.dev2dev.bea.com/
    I hope this helps.
    -Adrian

  • Getting jndi name for jms queue via jmx?

    All,
    I'm trying to write a utility that will do a 9.2-style message export against 8.1 I think I have it all figured out except that I don't know how to get the jndi name of a queue or topic via jmx. I'm using jmx to find queues and subscriptions that have messages waiting, then trying to connect to them to siphon off the messages. I can't just browse jndi for any queue I find because I also want to access the durable subscriptions, for which I need the client and subscriptions ids. Is there a way to map from the jms destination runtime mbean to the jndi name? The getDestination() method isn't supported (throws an exception.)
    thanks

    Hi John,
    You can get destination JNDI names by looking up their value in the JMX configuration mbeans rather than the runtime mbeans. The client-id and subscription-name are available on the JMSDurableSubscriberRuntime mbean.
    Regards,
    Tom

  • I'm seeing NPE when getting server state via JMX

    I'm seeing below error when getting server state via JMX.
    Caused by: java.lang.NullPointerException
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:281)
    at weblogic.management.remote.common.WLSRMIConnector.doConnect(WLSRMIConnector.java:151)
    at weblogic.management.remote.common.WLSRMIConnector.access$100(WLSRMIConnector.java:28)
    at weblogic.management.remote.common.WLSRMIConnector$2.run(WLSRMIConnector.java:139)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.security.Security.runAs(Security.java:61)
    at weblogic.management.remote.common.WLSRMIConnector.connect(WLSRMIConnector.java:137)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
    I'm using jrockit16020 for client and server VM.
    Below is my code for accessing MBean.
    private static JMXConnector initConnection(String hostname,
    String portString, String username, String password) throws IOException,
    MalformedURLException {
    String protocol = "t3";
    Integer portInteger = Integer.valueOf(portString);
    int port = portInteger.intValue();
    String jndiroot = "/jndi/";
    String mserver = DomainRuntimeServiceMBean.MBEANSERVER_JNDI_NAME;
    JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port,
    jndiroot + mserver);
    Hashtable h = new Hashtable();
    h.put(Context.SECURITY_PRINCIPAL, username);
    h.put(Context.SECURITY_CREDENTIALS, password);
    h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    h.put("jmx.remote.x.request.waiting.timeout", new Long(10000));
    JMXConnector connector = JMXConnectorFactory.connect(serviceURL, h);
    return connector;
    private String getServerState() {
    DomainRuntimeServiceMBean domainRuntimeService;
    JMXConnector con = null;
    try {
    con = initConnection(this.serverHost, String.valueOf(this.serverPort),
    this.managementUserName, this.managementPassword);
    domainRuntimeService = (DomainRuntimeServiceMBean) MBeanServerInvocationHandler
    .newProxyInstance(con.getMBeanServerConnection(), new ObjectName(
    DomainRuntimeServiceMBean.OBJECT_NAME));
    DomainRuntimeMBean d = domainRuntimeService.getDomainRuntime();
    ServerLifeCycleRuntimeMBean b = d
    .lookupServerLifeCycleRuntime(this.serverName);
    return b.getState();
    } catch (MalformedObjectNameException e) {
    // TODO Auto-generated catch block
    throw new BuildException(e);
    } catch (MalformedURLException e) {
    // TODO Auto-generated catch block
    throw new BuildException(e);
    } catch (NullPointerException e) {
    // TODO Auto-generated catch block
    throw new BuildException(e);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    return "unknown";
    } finally {
    if (con != null) {
    try {
    con.close();
    } catch (IOException e) {
    Thanks for your help

    How are you trying, using a web browser?

  • Problem accessing mail via Safari browser

    How do I access iCloud Mail via my Safari browser on my iPhone? If I go to iCloud.com it just offers me the option to install it on my phone.
    The problem is, I already have it installed on my phone and it works fine EXCEPT at my new job - the wifi is not very good and I can access internet/Facebook etc but every time I try and load email it always says it 'cannot find the server .' I therefore tried to access email via safari browser - my other email provider works fine that waybut iCloud doesn't even give me the option to login, just keeps suggesting I install it.
    Any ideas how I can check iCloud email at work? Can't do it on work computers, site is blocked....and there is no 3G/4G signal.
    Thanks for any advice!

    According to http://support.apple.com/kb/PH2618 you should be able to access it via a browser by going to https://www.icloud.com/#mail

  • I would like to free up some space on my computer and move my iphoto library to the time capsule and easily access it. Also, would I be able to access them via the TC if I purchased a new computer?

    I am using my TC as an external hard drive, I would like to remove my photos from my computer to free up space. I'm wondering:
    1. Once the photos are moved, how do I access them via the TC, AND will i still be able to print them and see them the way they were set up in my iphoto on the computer?
    2. If I purchase a new computer, will I still be able to access them just as easily?
    3. What is the process to move the photos to the TC?
    I am afraid that if I "erase" them from my computer I will not be able to access them.

    Are you still using iphoto?
    If so you should NOT move the iphoto library to the TC and use it.
    Apple says you will corrupt the library doing this.
    http://support.apple.com/kb/TS5168
    Although mostly about FAT32  it adds network drives.
    http://support.apple.com/kb/HT1198
    Now what I cannot tell you is if the same rules apply to the new photo app. Apple might have fixed the problem.
    For iphoto you should offload the photos to USB drive plugged into your computer.. or any external drive.. the faster the interface the better.
    Apple have explicit instructions for moving the library.
    iPhoto '11: Move your iPhoto library to a new location

  • Can't access photos via windows, everything else works iTunes, external software etc.

    Hello,
    Since I installed Windows 8.1 I have quite big problem, can't access photos via windows explorer. iTunes and other software can see phone and works completely fine.
    There is error 28 in device manager.
    Tried uninstalling all services including iTunes itself and got latest iTunes today and still no luck.
    Anybody knows solution to this ?
    (iPhone 4S iOS 7.0.4)

    Is it just me, who got this issue ?

  • Can no longer access Facebook via Safari on iPhone

    Ever since I loaded IOS 6 onto my iPhone 4, I cannot get to Facebook via Safari...it automatically reverts to the fb app. Even if I put www.facebook.com into the browser. I still access fb via Safari on my ipad (new ipad). This is important as I have low vision and the font is too small on the app.

    I have the problem after upgrading my iPad to iOS 6.
    It started with the app store, then facebook app and finally can't access to any apple.com page.
    Already restore the iPad and now I can access to app store. Still working to get back my access to facebook.
    If anyone has an idea about this?

  • Static NAT causes unable to access server via internal IP

    Hi all,
    Need some help. I running site-to-site IPsec VPN in Cisco 2811 IOS 12.4 both site. Here I encounter a problem to access server on  Site A from Site B
    Site A having Leased Line connected to router with Public IP. I have done static mapping 1 web server to Public IP (NAT). This to allow external users to access the server via Public IP. At the same time, users at Site B would need to access to same server via Internal IP since they have Site-to-Site VPN established. But once I done Static Mapping (NAT), user at Site B unable to access the server at Site A using its internal IP. But external user can access server via Public IP. What went wrong here. Do i need to add extra command to get this done? We really need this.

    Hi sheik,
    I'm accessing the server form Site B using its server's LAN IP.
    If I remove the static NAT statement from my router at Site A, everything works well. I can access the server from site B using its LAN IP via Site-to-Site VPN. But in this case, external users unable to access server via Public IP since no Static NAT statement.

  • Unable to access internet via my airport extreme base station

      I have an AirPort Extreme Base Station which is hard wired to a Mac and which communicates wirelessly to a Mac in another room.  My internet access is via comcast.  Direct connection from this computer to my modem works fine, but not if I go through the AirPort.  The LED lights of the AirPort indicate normal network activity, (flashing/on/flashing).  I have tried disconnecting and reconnecting everything and rebooting the computer.  The system has been working normally through the AirPort until today.

    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    (OPTIONAL) Disconnect the AirPort base station from the Internet broadband modem.
    (OPTIONAL) While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    (OPTIONAL) After the base station resets, go ahead and power it back down.
    (OPTIONAL) Reconnect the AirPort base station to the Internet broadband modem. For the Extreme and Time Capsule, be sure to connect the cable to the base station's WAN (circle-of-dots) port.
    Power-up the modem; wait at least 10-15 minutes to allow it adequate time to initialize.
    Power-up the AirPort base station; wait at least 5-10 minutes. Note: The AirPort's status light may continue to flash amber after it has intialized. That is because, there may be some additional configuration items necessary, like setting up wireless security, before the overall setup is completed to get a green status.
    Power-up your computer(s).
    In this basic configuration, the AirPort base station will broadcast an unsecured wireless network with a Network Name (SSID) of Apple Network NNNNNN. Network clients, connected to the base station either by wire or wireless, should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options. Please post back your results.

  • HT5621 Two days ago I changed my apple id.  Itunes recognizes my new apple id when I access itunes via the computer. when I try to make a purchase or update my apps on my iphone, it asks to give the password to the old apple id.  How do i change it on my

    Two days ago I changed my apple id.  Itunes recognizes my new apple id when I access itunes via the computer. when I try to make a purchase or update my apps on my iphone, it asks to give the password to the old apple id.  How do i change it on my iphone?

    Apps and music are forever tied to the Apple ID under which they were purchased.  If you don't want to continue to get that message, delete the apps and purchase them again with your new Apple ID.

  • Using Interactive Report with SQL query accessing tables via db link

    Is there a known issue with using the interactive report in version 3.1.2.00.02 with SQL that is accessing tables via a database link? I get the error 'not all variables bound', I do not get this error when using the standard report for the same SQL?
    Thanks,
    Edited by: [email protected] on May 26, 2009 2:59 PM

    Varad,
    Good question, failed to check that. In fact there are errors. Dump file c:\oraclexe\app\oracle\admin\xe\bdump\xe_s002_3640.trc
    Mon Jun 15 08:48:11 2009
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 3
    CPU : 2 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1051M/2038M, Ph+PgF:2273M/3934M, VA:1302M/2047M
    Instance name: xe
    Redo thread mounted by this instance: 1
    Oracle process number: 16
    Windows thread id: 3640, image: ORACLE.EXE (S002)
    *** ACTION NAME:(PAGE 2) 2009-06-15 08:48:11.743
    *** MODULE NAME:(APEX:APPLICATION 112) 2009-06-15 08:48:11.743
    *** SERVICE NAME:(SYS$USERS) 2009-06-15 08:48:11.743
    *** CLIENT ID:(ADMIN:232384011651572) 2009-06-15 08:48:11.743
    *** SESSION ID:(24.931) 2009-06-15 08:48:11.743
    *** 2009-06-15 08:48:11.743
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_LdiDateFromArray+55] [PC:0x608B04F3] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Current SQL statement for this session:
    select Stage,Procedure,Stp,FW,Reslt,MSG,date_run
    from bi_msg_VW@dwitnm
    order by 1
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    2FE1EA14 1207 package body SYS.DBMS_SYS_SQL
    2FE1F064 328 package body SYS.DBMS_SQL
    2ABDC520 5097 package body APEX_030200.WWV_RENDER_REPORT3
    2BD5E55C 1538 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    2BD5E55C 366 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    335BDA88 11190 package body APEX_030200.WWV_FLOW
    2BDBD1C8 255 procedure APEX_030200.F
    2AB58D10 30 anonymous block
    ----- Call Stack Trace -----
    I didn't include the call stack, it is too large. Now I'm even more puzzled that the IR would work while a sql report would fail.
    Bob

  • HT4199 Need to access WiFi via PC. How to connect IPad to PC tower? Is an adapter part needed?

    Need to access Wifi via PC. How to connect IPad to WiFi via PC Tower? Ia an adapter needed? Any help is appreciated.

    To what purpose?
    If you are trying to share internet connection-you need to enable that in the OS on the computer.

  • Accessing NetStorage via WebDAV from Windows 7

    Until last week we were running Netware 6.5 SP8. I was aware that accessing NetStorage via WebDAV (using Microsoft Web Folders) does not work on Windows 7. Now I migrated the server to OES 11 SP2 and I decided to re-investigate the issue. Currently, I still can't access NetStorage from WebDAV on Windows 7. When I try to add new network location in Windows, enter the correct URL and I'm prompted for username and password. After entering the correct password, the username/password window re-appears. On entering the username and password second time, I get error message "The folder you entered does not appear to be valid. Please choose another."
    Is the situation still such that accessing NetStorage via Microsoft Web Folders on Windows 7 does not work, or do I have something misconfigured?
    From web browser, there are no problems accessing NetStorage.

    Originally Posted by vatson
    Until last week we were running Netware 6.5 SP8. I was aware that accessing NetStorage via WebDAV (using Microsoft Web Folders) does not work on Windows 7. Now I migrated the server to OES 11 SP2 and I decided to re-investigate the issue. Currently, I still can't access NetStorage from WebDAV on Windows 7. When I try to add new network location in Windows, enter the correct URL and I'm prompted for username and password. After entering the correct password, the username/password window re-appears. On entering the username and password second time, I get error message "The folder you entered does not appear to be valid. Please choose another."
    Is the situation still such that accessing NetStorage via Microsoft Web Folders on Windows 7 does not work, or do I have something misconfigured?
    From web browser, there are no problems accessing NetStorage.
    My limited understanding is that MS seriously mangled/changed WebDav in Windows 7 and if you google for webdav webfolders and windows 7 you'll find all sorts of differing things that may be needed for things to work.
    I do know that you can download the free NetDrive client software somewhere and that should work on Win7 against NetStorage.
    I vaguely recall there was something special you had to do with Web Folders on Windows 7 if you wanted to use WEBDAV against FILR, so perhaps those same steps are necessary against NetStorage.
    Also, are you accessing NetStorage directly, or going through a reverse proxy such as NAM?

Maybe you are looking for

  • 5th generation ipod touch & Nike+ compatibility

    Hi guys I bought yesterday a pair of Nike shoes equiped with Nike+ technology which I'm willing to use. In fact my shoes carry the nike+ technology of the following type: http://www.nike.com/plus/products/training/ According to Nike, the nike+ techno

  • How can I get a playlist created on my iPad to iTunes?

    I create a playlist on the iPad... I love it... I want it on the iPhones in my household. How can I get that playlist into iTunes, so I can push it out to the other iOS devices? When I sync the iPad with iTunes, the playlist created on the iPad is wi

  • Not exists or minus

    I have 2 big table. And I want to get records on table A that is not exists on table B yet. Which method should I use? table A (30 millions) noOrder name address index on table A : noOrder unque index table B (50 millions) keyNo noOrder info composit

  • Changing apple ID on iPhone

    Hi, I accidentally entered a wrong email address onto the Apple ID field on my iPad during setup for iCloud. Now the iPad and MacBook can't find the phone. Setup in iPad won't let me change the ID. Any ideas how I might get the iPad to accept a corre

  • Can Edge Reflow handle type on top of background image within a box?

    What I mean is, from code point of view, it's not <img src="">, but <style="background: url()">, then put type on top of the background image.  Can Edge Reflow handle that?  Really appreciate your help.