java.io.PrintWriter printWriter, String header)
static public void printTrace(java.lang.Throwable throwable,
java.io.PrintWriter printWriter, String header)
Prints diagnostic information after an exception is thrown.
Parameter descriptions:
sqlException|sqlca|throwable
The exception that was thrown during a previous JDBC or Java operation.
printWriter
The destination for the diagnostic information.
header
User-defined information that is printed at the beginning of the output.
Related concepts
“Example of a trace program under the IBM Data Server Driver for JDBC and
SQLJ” on page 486
DB2JCCPlugin class
The com.ibm.db2.jcc.DB2JCCPlugin class is an abstract class that defines methods
that can be implemented to provide DB2 Database for Linux, UNIX, and Windows
plug-in support. This class applies only to DB2 Database for Linux, UNIX, and
Windows.
DB2JCCPlugin methods
The following methods are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
getTicket
Format:
public abstract byte[] getTicket(String user,
String password,
byte[] returnedToken)
throws org.ietf.jgss.GSSException
Retrieves a Kerberos ticket for a user.
Parameter descriptions:
user
The user ID for which the Kerberos ticket is to be retrieved.
password
The password for user.
returnedToken
DB2PooledConnection class
The com.ibm.db2.jcc.DB2PooledConnection class provides methods that an
application server can use to switch users on a preexisting trusted connection.
Trusted connections are supported for:
v IBM Data Server Driver for JDBC and SQLJ type 4 connectivity to DB2
Database for Linux, UNIX, and Windows Version 9.5 or later, and DB2 for z/OS
Version 9.1 or later
Chapter 7. JDBC and SQLJ reference information 345