IBM DB2 Manual page 350

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334
Application Programming Guide and Reference for Java
jarFile
The contents of the JAR file that is to be replaced on the server.
jarFileLength
The length of the JAR file that is to be replace on the server.
jarId
The name of the JAR in the database, in the form schema.JAR-id or JAR-id.
This is the name that you use when you refer to the JAR in SQL
statements. If you omit schema, the database system uses the SQL
authorization ID that is in the CURRENT SCHEMA special register. The
owner of the JAR is the authorization ID in the CURRENT SQLID special
register.
This method does not apply to connections to IBM Informix Dynamic Server
data sources.
reuseDB2Connection (trusted connection reuse)
Formats:
public void reuseDB2Connection(byte[] cookie,
String user,
String password,
String usernameRegistry,
byte[] userSecToken,
String originalUser,
java.util.Properties properties)
throws java.sql.SQLException
public void reuseDB2Connection(byte[] cookie,
org.ietf.GSSCredential gssCredential,
String usernameRegistry,
byte[] userSecToken,
String originalUser,
java.util.Properties properties)
throws java.sql.SQLException
Trusted connections are supported for:
IBM Data Server Driver for JDBC and SQLJ type 4 connectivity to DB2
v
Database for Linux, UNIX, and Windows Version 9.5 or later, and DB2 for
z/OS Version 9.1 or later
IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2 for
v
z/OS Version 9.1 or later
The second of these forms of reuseDB2Connection does not apply to IBM Data
Server Driver for JDBC and SQLJ type 2 connectivity on DB2 for z/OS.
These forms of reuseDB2Connection are used by a trusted application server to
reuse a preexisting trusted connection on behalf of a new user. Properties that
can be reset are passed, including the new user ID. The database server resets
the associated physical connection. If reuseDB2Connection executes successfully,
the connection becomes available for immediate use, with different properties,
by the new user.
Parameter descriptions:
cookie
A unique cookie that the JDBC driver generates for the Connection
instance. The cookie is known only to the application server and the
underlying JDBC driver that established the initial trusted connection. The
application server passes the cookie that was created by the driver when
the pooled connection instance was created. The JDBC driver checks that
the supplied cookie matches the cookie of the underlying trusted physical
connection to ensure that the request originated from the application server

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents