The JdbcMeDriver class provides a subset of functions available in the IBM® Toolbox for Java™ AS400JDBCDriver class. Use JdbcMeDriver in your Tier0 client application to run simple SQL statements that have no parameters and obtain ResultSets that the statements produce.
You don't explicitly register the JdbcMeDriver; instead the driver property you specify on the URL in the JdbcMeConnection.getConnection() method determines the driver. For example, to load the IBM Developer Kit for Java JDBC driver (called the 'native' driver), use code similar to the following:
Connection c = JdbcMeDriver.getConnection( "jdbc:as400://mysystem.myworld.com;meserver=myMeSrvr;driver=native;user=auser;password=apassword");
The IBM Toolbox for Java JDBC driver does not require an AS400 object as an input parameter like the other IBM Toolbox for Java classes that get data from a server. However, an AS400 object is used internally and you must explicitly provide a user ID and password. Provide the user ID and password either in the URL or by way of the parameters on the getConnection() method.
For examples of using getConnection(), see JDBCMeConnection.