The best way to ensure that your platform is supported is to run the JUnit tests. These will test the Connector/MXJ classes and the associated components.
          The first thing to do is make sure that the components will
          work on the platform. The
          MysqldResource class is really a
          wrapper for a native version of MySQL, so not all platforms
          are supported. At the time of this writing, Linux on the i386
          architecture has been tested and seems to work quite well, as
          does OS X v10.3. There has been limited testing on Windows and
          Solaris.
        
Requirements:
JDK-1.4 or newer (or the JRE if you aren't going to be compiling the source or JSPs).
MySQL Connector/J version 5.0 or newer (from http://dev.mysql.com/downloads/connector/j/) installed and available via your CLASSPATH.
              The javax.management classes for JMX
              version 1.2.1, these are present in the following
              application servers:
            
JBoss - 4.0rc1 or newer.
Apache Tomcat - 5.0 or newer.
Sun's JMX reference implementation version 1.2.1 (from http://java.sun.com/products/JavaManagement/).
JUnit 3.8.1 (from http://www.junit.org/).
If building from source, All of the requirements from above, plus:
Ant version 1.5 or newer (download from http://ant.apache.org/).
The tests attempt to launch MySQL on the port 3336. If you have a MySQL running, it may conflict, but this isn't very likely because the default port for MySQL is 3306. However, You may set the "c-mxj_test_port" Java property to a port of your choosing. Alternatively, you may wish to start by shutting down any instances of MySQL you have running on the target machine.
The tests suppress output to the console by default. For verbose output, you may set the "c-mxj_test_silent" Java property to "false".
To run the JUnit test suite, the $CLASSPATH must include the following:
JUnit
JMX
Connector/J
MySQL Connector/MXJ
              If connector-mxj.jar is not present
              in your download, unzip MySQL Connector/MXJ source
              archive.
            
cd mysqldjmx
ant dist
     
              Then add
              $TEMP/cmxj/stage/connector-mxj/connector-mxj.jar
              to the CLASSPATH.
            
              If you have junit, execute the unit
              tests. From the command line, type:
            
java com.mysql.management.AllTestsSuite
    
The output should look something like this:
......................................... ......................................... .......... Time: 259.438 OK (101 tests)
Note that the tests are a bit slow near the end, so please be patient.


User Comments
Add your own comment.