Feb 25th, 2013, 12:03 PM
We want to use native connections using spring nativeconnectionextractor class. We are using websphere and to get native connection we have to use WebSphereNativeJdbcExtractor class but it is not recommended to use as it internally uses WSJdbcConnection.The connections obtained from this interface are not managed by WAS.
So what I am planning to do is to create a customNativeJdbcExtractor class and in the getNativeconnection method I am planning to write the following code
(OracleConnection)WSCallHelper.jdbcCall(OracleConn ectionWrapper.class,conn,"unwrap",null,null );
Only thing I want to know is how spring handles native connections.. will it close it?
As per my understanding native connections should not be closed. do I need to do anything in my code.
In this class do I need to set true for all other methods like
Can anyone please share their viewpoints here.
Tags for this Thread