Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get native connection from PoolingDataSource of Bitronix #76

Closed
vka255 opened this issue Apr 7, 2017 · 1 comment
Closed

How to get native connection from PoolingDataSource of Bitronix #76

vka255 opened this issue Apr 7, 2017 · 1 comment

Comments

@vka255
Copy link

vka255 commented Apr 7, 2017

How to get the native connection (Native oracle connection in my case) from bitronix poolingdatasource inside spring @transactional Method

@lorban
Copy link
Contributor

lorban commented Apr 7, 2017

Connection nativeConnection = connectionFromBtmPool.unwrap(java.sql.Connection.class);

See: https://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html

@lorban lorban closed this as completed Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants