History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: HIBSPA-9
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Karel Maesen
Reporter: Karel Maesen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Spatial

Add a ConnectionFinder Interface that returns the active Oracle JDBC connection

Created: 13/Jul/08 11:02 PM   Updated: 19/Feb/10 06:27 PM
Component/s: Oracle10g
Affects Version/s: 1.0-M1
Fix Version/s: 1.0-M2


 Description  « Hide
The Oracle Spatial providers need access to the current OracleConnection (typed as OracleConnection). Unfortunately, in many environments such as JBoss or CP30 Connection Pool the JDBC connection is wrapped behind a generic JDBC Connection interface. Each environment will have some way to retrieve the original OracleConnection, but it is usually specific to that environment.

The solution is to provide a "ConnectionFinder" interface that specifies a finder method that returns an OracleConnection. A default implementation uses the current strategies for retrieving an
OracleConnection. Users of C3P0 or other connectionpools/containers/... can then create their own implementation that retrieves the native OracleConnection by whatever means possible.

See this discussion: http://www.nabble.com/Re%3A-C3P0-Connection-pool-support-to15181513.html and http://docs.codehaus.org/display/GEOTOOLS/J2EE+and+Connection+Pools.

 All   Comments   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.