B.2. Install JDBC Drivers
jboss-as/server/production/lib directory. Replace production with the server configuration you are using if needed. This file is loaded when JBoss starts up. So if you have the JBoss AS running, you'll need to shut down and restart. The availability of JDBC drivers for different databases are as follows.
- MySQL JDBC drivers can be obtained from http://dev.mysql.com/downloads/connector/j/5.0.html. The download contains documentation, etc. for the JDBC connector, but you really only need the
mysql-connector-java-5.0.4-bin.jarfile to get MySQL to work with and be used by JBoss AS. - PostgreSQL JDBC drivers can be obtained from: http://jdbc.postgresql.org/. For 8.2.3 version, we need the JDBC3 driver
8.2-504 JDBC 3. The download is just the JDBC driverpostgresql-8.2-504.jdbc3.jarfile. - Oracle thin JDBC drivers can be obtained from: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html for your Oracle DB versions.
- IBM DB2 JDBC drivers can be downloaded from the IBM web site http://www-306.ibm.com/software/data/db2/java/.
- Sybase JDBC drivers can be downloaded from the Sybase jConnect product page http://www.sybase.com/products/allproductsa-z/softwaredeveloperkit/jconnect
- MS SQL Server JDBC drivers can be downloaded from the MSDN web site http://msdn.microsoft.com/data/jdbc/.
B.2.1. Special notes on Sybase
sp_dboption db_name, "allow nulls by default", true
Refer the sybase manuals for more options.
To use any java service like JMS, CMP, timers etc. configured with Sybase, java should be enabled on Sybase Adaptive Server. To do this use:
sp_configure "enable java",1
Refer the sybase manuals for more information.
com.sybase.jdbc2.jdbc.SybSQLException: Cannot run this command because Java services are not enabled. A user with System Administrator (SA) role must reconfigure the system to enable Java
To use Container Managed Persistence for user defined Java objects with Sybase Adaptive Server Enterprise the java classes should be installed in the database. The system table 'sysxtypes' contains one row for each extended, Java-SQL datatype.This table is only used for Adaptive Servers enabled for Java. Install java classes using the installjava program.
installjava -f <jar-file-name> -S<sybase-server> -U<super-user> -P<super-pass> -D<db-name>
Refer the installjava manual in Sybase for more options.
Note
- You have to be a super-user with required privileges to install java classes.
- The jar file you are trying to install should be created without compression.
- Java classes that you install and use in the server must be compiled with JDK 1.2.2. If you compile a class with a later JDK, you will be able to install it in the server using the installjava utility, but you will get a java.lang.ClassFormatError exception when you attempt to use the class. This is because Sybase Adaptive Server uses an older JVM internally, and hence requires the java classes to be compiled with the same.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.