JMX with JDBC Driver

Hi,
I am newbie to JMX and trying to explore the JMX feature "Monitoring and Management" . We have implemented Type 3 JDBC driver and we want to include JMX in it. What type of MBeans would be appropriate to use for JDBC Driver?
Thanks in advance,
Regards,
-Sushama

One of the most concise explanations I have seen of the different types of MBeans and where each is most appropriate is in the [Javadoc for the javax.management package|http://java.sun.com/javase/6/docs/api/javax/management/package-summary.html]. I find myself using MXBean as my default type of MBean unless I need the additional functionality (and am willing to deal with the additional complexity of) a dynamic MBean. If using J2SE 5, then the Standard MBean is my default choice because custom MXBeans are not available until J2SE 6. I use the Spring Framework quite a bit with JMX and so indirectly use the ModelMBean quite often as well, though it would be much more effort to use ModelMBeans directly than it is using Spring to do much of it for me.
The simplest and most straightforward approach is to use Standard MBean or MXBean unless you need the additional features the more dynamic MBean types support.

Similar Messages

  • I need Crystal Reports XI R2 RDC merge modules with JDBC driver.

    I successfully connected to MySQL server from CR XI R2 designer with JDBC driver. My application is developed in Delphi, using Crystal Reports VCL.  I need to build a Installer including executable files, *.rpt files and CR RDC merge modules in Macrovision Installshield 12.  But RDC_reportengine is not containing JDBC driver. How I to include and configure the JDBC driver?

    I just done these steps.  But following error occurs:
    Error: 772 error in file C:\...\myreportfile.rpt:
    Invalid argument for database.
    Execute <PEStartPrintJob>.
    I used mysql-connecter-java-5.1.7-bin.jar from mysql.com.
    In designer connection url is
    jdbc:mysql://mysqlserver/database
    database classname is
    com.mysql.jdbc.Driver
    My Calling the report code from Delphi is:
    CrystalReport.Connect.ServerName := servername;
        CrystalReport.Connect.UserID := username;
        CrystalReport.Connect.Password := password;
        CrystalReport.Execute;
    It is worked successfully on installed the CR designer PC.

  • Problem with JDBC driver for Oracle 10g

    Hi.
    I've successfully accessed a MySQL database via a DataSource from a servlet (that uses a DAO). However, when I try to do the same with an Oracle 10g Database, I get the error message:
    Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
    I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter of which I downloaded this afternoon as the latest driver JAR available on the Oracle site. As with the MySQL driver, I've placed it in the commons\lib folder within Tomcat. (I've also, of course, made the necessary modifications to server.xml and web.xml.)
    Upon examining the ReadMe file at the top of the Oracle download page, I found that the oracle.jdbc.driver package is now deprecated and all references to oracle.jdbc.driver should be replaced with oracle.jdbc. However, I got a similar error message when I tried this modification. Upon examining the contents of ojdbc.jar, I found that the driver was there and that it was, in fact, still oracle\jdbc\driver\OracleDriver!
    It appears as though the Oracle site has not been updated with a driver that matches its latest documentation. However, this does not explain why the driver is not even being loacted when it is in the correct place. Can anybody shed any light on this? Any help would be much appreciated.
    Thanks in anticipation.
    Cheers.
    Jan

    I've successfully accessed a MySQL database via a
    DataSource from a servlet (that uses a DAO). However,
    when I try to do the same with an Oracle 10g
    Database, I get the error message:
    Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
    That's different from a ClassNotFoundException.
    >
    I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter
    of which I downloaded this afternoon as the latest
    driver JAR available on the Oracle site. So you got ojdbc14.jar or ojdbc14_g.jar under the 10g drivers?
    As with the
    MySQL driver, I've placed it in the commons\lib
    folder within Tomcat. I think it's a better idea to put in the WEB-INF/lib directory of your Web app rather than commons/lib. WAR files are a very good idea, too.
    (I've also, of course, made the
    necessary modifications to server.xml and web.xml.)So you're using a JNDI data source? It sounds to me like that's where the problem is.
    You should not have to edit the server.xml at all. If you put the <ResourceParams> in a context XML file with the same name as your WAR file into the TOMCAT_HOME/webapps directory it'll be picked up automatically. (It might also be accessible in the META-INF directory for your app, but I haven't done it that way.)
    Upon examining the ReadMe file at the top of the
    Oracle download page, I found that the
    oracle.jdbc.driver package is now deprecated and all
    references to oracle.jdbc.driver should be replaced
    with oracle.jdbc.
    However, I got a similar error
    message when I tried this modification. Upon
    examining the contents of ojdbc.jar, I found that the
    driver was there and that it was, in fact, still
    oracle\jdbc\driver\OracleDriver! The fully-resolved class name you should be using MUST match the class that's in the ojdbc14.jar that you're using. Look in the JAR for the definitive answer: the one that I downloaded is still using the oracle.jdbc.driver package for OracleDriver.class. Ignore the docs - use the name that's in the JAR.
    It appears as though the Oracle site has not been
    updated with a driver that matches its latest
    documentation. That often happens with docs.
    However, this does not explain why the
    driver is not even being loacted when it is in the
    correct place. Can anybody shed any light on this?
    Any help would be much appreciated.I think the problem lies in your web.xml and server.xml
    I'd recommend that you decouple the JDBC from the Web app for now. See if you can connect to Oracle using a simple desktop app and leave the Web piece out of the equation for now. Once you can do that, you'll be certain that the parameters you're using are correct and you can turn your attention to getting the Tomcat configuration right.
    PS - I'm using Oracle 9.2.0.1 and Tomcat successfully right now, so it can be done.

  • Run application with jdbc driver for postgres 7.4

    I execute my application in the following way:
    java -jar myapplication.jar
    but when being executed it doesn't find the connection driver creating a big error in mi application.
    that I can make so that my application finds the driver when being executed?
    Help meeeee please!!!!

    Presumably the JDBC driver is already in its own jar file. You should include a Class-Path entry referring to that jar file in the manifest of your myapplication.jar file.

  • Seeking help with JDBC driver

    I'm new at this stuff, and I've downloaded the 8.05 JDBC drivers
    for NT.
    This includes classes111.zip and oci805jdbc.dll. I can compile
    my java program but no matter what I do, when I run it, java
    complains that there is no suitable driver. Can someone tell me
    what connections string I'm supposed to use? I've tried
    various contortions of the examples ("jdbc.oracle.oci8@db",
    etc), but nothing works. The directory where the .dll is
    located is in my path
    Thanks
    null

    I know that the style rules are placed in your document by the Widget Brouwser, but you do need to understand them and tweek them. As an example
    #TabbedPanels2 .TabbedPanelsTabGroup {
        top: 1px;
        left: 0px;
        font-family: inherit;
        font-weight: inherit;
        font-size: inherit;
        color: #426e93;
        background-color: #6896bb;
        border-left: solid 1px #92b3ce;
        border-bottom: solid 1px #eeeeee;
        border-top: solid 1px #92b3ce;
        border-right: solid 1px #92b3ce;
        padding: 3px 0px 0px 3px;
    These are inherited from whatever style rule exists for this element. You need to specifically put a value for these properties that will apply spcifically to this selector, unless ofcourse you are happy with the inherited styles.
    But this becomes more important as you go down the style rules for this widget.
    May I suggest that you create a new document where the only content is the tabbed panel widget. That way there are no other style rules that affect the widget. Then play around with the style rules to suit.
    Gramps

  • Using OS_ROLES with JDBC Driver

    I can't get my JDBC connections to pick-up the OS ROLES I have configured. Does the OCI driver support OS Roles?
    I'm using 10gR2 with latest JDBC drivers, running on Windows XP.
    If I connect locally with sqlplus then the roles are established correctly. However, establishing the 'equivalent' connection from Java yields a user with no ROLEs defined, i.e. they are not being picked-up from the OS.
    Is there a trick or is it not supported?
    I believe I have the database and the OS groups setup correctly and, as I say, it works fine with a sqlplus connection.
    If anyone either knows how to do, or knows that its not supported then please let me know.
    Thanks,
    Richard.

    to my knowledge this is not supported in jdbc specification2.0 and 3.0 and jdbc drivers are complied to this standards.
    connecting with sql client is entirely different with the connection using java thin drivers.
    thanks,
    Ruchir

  • Problem accessing Sql server Procedure from Crystal with JDBC driver

    I have some Crystal reports using SQL Server procedures, most of them are working very well; however, I have 2 that have problems accessing sql server procedures. These reports are working using OLE DB connection without problem, but when I try to relocate the connection to JDBC Crystal generates an error like that the procedure not return records.
    The procedure is working with other products including OLE DB connections from crystal.
    What can I do?
    Thanks in Advance,
    JaimeC

    I am using:
    Crystal report 11 - 11.0.0.1282 and Crystal 2008 = 12.0.0.683
    SQL Server 2005 -  Microsoft SQL Server Management Studio Express     9.00.4035.00
    Windows XP
    I have discovered that the procedures create and work  temporary tables. In other cases when is working ok, the procedures have not working temporary tables.
    Thanks,
    Jaime Carrillo

  • Problem with JDBC driver for mysql

    I have downloaded the Connector/J3.0 mysql-connector-java-3.0.7-stable.tar.gz from www.mysql.com/downloads/api-jdbc-stable.html web site and used gunzip and tar to extract the file. I have received the following error message:
    tar: directory checksum error
    Will this error cause some problem later on?
    Which directory should I put the driver into? Can I put it in any directory?
    Do I need to set the classpath for the driver? If yes, how can I set it?
    What is the connect string? Can you give a sample for me? I am using Solaris 5.8 and mysql is on the same machine.
    Thanks a lot,
    Lisa

    this is an example of a connect string for mysql that i used...
    public Connection CreateConnection () throws Exception
         Connection myConn = null;
         String driverName = "org.gjt.mm.mysql.Driver";
         String dbUrl = "jdbc:mysql://www.desres.com/jhazrd?user=jhazrd&password=????";
         Class.forName(driverName);
         myConn = DriverManager.getConnection (dbUrl);
    return myConn;
    }

  • BLOB Error with JDBC driver 8.1.5

    Hello.
    I tried to run the sample code that I got from OTN, but
    I couldn't run it because of some errors.
    Would you please help me?
    *** The sample code that I tried to run ***
    I got it from "SQLJ & JDBC Advanced Samples" in OTN.
    Sampl code Name: LOBSample
    *** Erroe Message ***
    Error in retrieving and drawing map for selected airport
    java.sql.SQLException: ORA-06550: line 1, column 22:
    PLS-00302: component 'GETCHUNKSIZE' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    This error occurred when p_blob.getBinaryStream() was called.
    (p_blob was an BLOB object)
    *** Environment ***
    OS: Windows NT 4.0 SP3
    RDBMS: Oracle 8 R8.0.5
    JDBC: Oracle JDBC Thin Driver v8.1.5
    Thanks, Satoshi Ikeda
    null

    Hi,
    The method getBytes() does not work, and produce the following
    error, when the size is big.
    java.sql.SQLException: ORA-21560: argument 2 is null, invalid, or
    out of range
    ORA-06512: at "SYS.DBMS_LOB", line 458
    ORA-06512: at line 1
    Since getchunksize() will also produces the same error as
    getBinaryStream() ('GETCHUNKSIZE' must be declared) therefore, I
    have no idea how to find the best value to chop the data to
    retrieve it, except try and error. The example I am working on
    32000 bytes seems to be the ideal size, and it causes error when
    the size get bigger. I am currently working on a NT server. I
    guess the ideal size can differ from server to server. Does
    anyone has better suggestion to get the ideal size?
    Shuhsin
    Oracle Product Development Team wrote:
    : This is a known limitation when you use 8.1.5 JDBC drivers
    : against old DBs. We have the fix in the 8.1.6 SDK.
    : For now, try using getBytes if you are talking to an older
    : DB
    : Satoshi Ikeda (guest) wrote:
    : : Hello.
    : : I tried to run the sample code that I got from OTN, but
    : : I couldn't run it because of some errors.
    : : Would you please help me?
    : : *** The sample code that I tried to run ***
    : : I got it from "SQLJ & JDBC Advanced Samples" in OTN.
    : : Sampl code Name: LOBSample
    : : *** Erroe Message ***
    : : Error in retrieving and drawing map for selected airport
    : : java.sql.SQLException: ORA-06550: line 1, column 22:
    : : PLS-00302: component 'GETCHUNKSIZE' must be declared
    : : ORA-06550: line 1, column 7:
    : : PL/SQL: Statement ignored
    : : This error occurred when p_blob.getBinaryStream() was called.
    : : (p_blob was an BLOB object)
    : : *** Environment ***
    : : OS: Windows NT 4.0 SP3
    : : RDBMS: Oracle 8 R8.0.5
    : : JDBC: Oracle JDBC Thin Driver v8.1.5
    : : Thanks, Satoshi Ikeda
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • How to use JDBC driver (type 4) with struts?????

    Hi! have a nice day!!!!!
    i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very much

    thank for reply!!! :D
    my project require to use struts 1.2.8 with ODBC (i think so it's type 1) for connect to database (SQL server). i think so it has two step :
    1. edit file struts-config.xml with <data-sources> tag.
    2. programming in file java (which extends from Action class) connect to database.
    but how to programming in file java??? (i think so must use objects DataSource & Connection)

  • .jar includes jdbc driver but doesn't work

    Hi
    I'm quite new with Java. I've just created my first app in java, it's some kind of CMS. I have to give to my friend who can only install JVM and I can't set up his computer, because he lives in other city. What's the problem then:
    I tried to compile (build) complete file with jdbc driver. And actually I've done it (when I open jar with winrar I see that mysql-connector.jar is there) but it's not working. I still have error:
    SQLException: com.mysql.jdbc.Driver
    No suitable driver
    08001
    It works fine when I'm running it with NetBeans, but built jar doesn't work at all.
    Please help me with this problem. I was searching in many forums for the same problem, but no one had it (I mean EXACTLY the same). I have had many problems already with adding connector to NetBeans project at the beginning, but finally I've done it after 2 days - reinstallation of NB solved the problem. Is it possible that's NB fault again?
    Thx for any clues
    Michael

    Hello,
    Try to include a Class-Path option in the Manifest of your jar and see if that works.
    Hope this helps

  • ORA-03115 Error using CLOB with JDBC

    When I try to access CLOB field data with JDBC driver, I gets following error:
    ORA-03115: unsupported network datatype or representation.
    I am using JDBC 8.1.6(Thin), Oracle 8.0.5
    on Linux OS.
    what's the problem ?
    Thank you for any help.
    Taesoo.
    null

    if it is a bug, then its better to upgrade the database to 10.2.0.4. it is the stable verion in 10g.

  • I want JDBC driver for Sybase database...

    Hi All:
    Can any one help me with JDBC driver for Sybase database ? I have surfed the net, but not able to find a Sybase driver that works correctly.
    Also, can you please let me know if anything special needs to be done in case of Sybase database connection, apart from what we normally do to connect to a database like "Oracle" or "MS SQL Server".
    Thanks and Regards,

    And why do you think someone using Oracle might know the Competitor's drivers?
    Having said this: you should give jTDS a try:
    http://jtds.sourceforge.net
    Also, can you please let me know if anything special
    needs to be done in case of Sybase database
    connection, apart from what we normally do to connect
    to a database like "Oracle" or "MS SQL Server".It's all in the docs of the driver

  • Java.lang.ClassNotFoundException:   net.sourceforge.jtds.jdbc.Driver

    Help!
      I've created a simple program that should connect to a client of mine using jdbc.  I was given the driver class which I have imported and added to my build path.  I deploy the application and it errors saying it cannot find the class.  Here is the code:
    public void wdDoInit()
        //@@begin wdDoInit()
        IWDMessageManager mm = wdThis.wdGetAPI().getComponent().getMessageManager();
        String host = "host";
        int port = 1433;
        String SID = "hostsid";
        String user = "username";
        String pass = "pwd";
        String driver_class = "net.sourceforge.jtds.jdbc.Driver"; 
        String access = "jdbc:jtds:sqlserver://" + host + ":1433" + "/" + SID;
        Connection con;
         try
          try
            Driver driver = (Driver)Class.forName(driver_class).newInstance();
           } catch (Exception e)
            mm.reportWarning("msg = " + e.toString());
          con = DriverManager.getConnection(access, user, pass);
        } catch (SQLException e)
          mm.reportWarning("Error: " + e.getMessage());

    Hi Steve,
    Put jar file with JDBC driver to lib folder under your WD project and it will be included to wda and ear files.
    BTW, may be it is beeter to register driver and datasource instead of using direct connect to DB? See how to register data source http://help.sap.com/saphelp_nw04/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
    Best regards, Maksim Rashchynski.

  • JDBC driver - OWB deployment error

    I am using OWB 11.2.0.3 and I'm trying to connect to a SQL SERVER 2008 R2 database by using a JDBC driver sqljdbc.jar.
    The connection works, I can import the tables but when I try to deploy the mapping I get the following error:
    java.lang.reflect.UndeclaredThrowableException; nested exception is: java.lang.reflect.UndeclaredThrowableException; oracle.oc4j.rmi.OracleRemoteException; java.lang.reflect.UndeclaredThrowableException
    I have tried with JDBCS driver 3 and 4. Does anyone know where the problem is?
    Edited by: 931311 on 16.05.2012 12:27

    Don't have a answer to your specific issue, but have a question. Where are you running the agent? I started with the agent on the client, but learned eventually that it had to be on the runtime server. I am currently also working through issues with OWB support. My issues appear to be runtime issues at this point.

Maybe you are looking for

  • Sound effects missing after 2.0 update?

    Anyone else notice their sound effects (click, etc.) went missing after the 2.0 update? (and yes, "both" is checked under settings). Just wondered if this is universal or if something went haywire with mine...

  • From Dave2512

    I have recently downloaded an update for camera raw to cs5and have checked that all updates are up to date. I have lost access to camera raw. thr open with camera raw option is greyed out in cs5 and if I try to open the NEF files from Bridge it tries

  • Design Capture of Package

    Hi, I'm using Designer 9i and have tried to capture from the server model a package. It appears to work okay but I get the warning that the package does not appear to have a body. The package does contain a body. Any ideas why I'm getting this? David

  • Creating 'widescreen' presentation

    Hi folks - need a little assistance in regards to setting up my page in Keynote to the size of a widescreen - so when I export as a quicktime my photos I've just arranged it will then be easy to import into my widescreen iMovie... Thanks in advance f

  • Clip gets cropped when importing to iMovie 9

    Hi I am trying to import video from a Samsung HD camera into iMove 9. The clips appear in the event file but when I play them the last 5 or seconds are not there - they seem to have been clipped in the import process. Any one got any ideas?