getJDBCConnection

 

public Connection getJDBCConnection(XADataSource xads) throws MQException, 
            SQLException, Exception;

Returns a Connection object for use with the JTA-JDBC support.

Parameters

  • xads - A database-specific implementation of the XADataSource interface that defines the details of the database to connect to. See the documentation for your database to determine how to create an appropriate XADataSource object to pass into this method.

Returns

  • A connection for use with the JTA-JDBC support.

Exceptions

  • MQException - if there is a WebSphere MQ failure.

  • SQLException - if there are problems getting the Connection object.

  • Exception - thrown to avoid problems with the JVM verifier for customers who are not using the JTA functionality. The actual exception thrown is javax.transaction.xa.XAException, which requires the jta.jar file to be added to the CLASSPATH for programs that did not previously require it.


uj15200_