Correct use of OCI driver proxy authentication with WebSphere application server -
07-18-2006
, 02:35 PM
Hi,
Has anyone used the Oracle OCI driver with Oracle 9i and WebSphere
application server V 5.
Here is my code:
OracleOCIConnectionPool dataSource = (OracleOCIConnectionPool) ( new
InitialContext().lookup(jndiDataSource) );
Properties prop = new Properties();
prop.put( OracleOCIConnectionPool.PROXY_USER_NAME, "byee" );
OracleConnection oc = dataSource.getProxyConnection(
OracleOCIConnectionPool.PROXYTYPE_USER_NAME, prop );
The method call getProxyConnection fails and returns a null pointer.
If anyone knows what might have gone wrong, please let me know.
Thanks. |