[jboss-user] [IronJacamar] - Re: unwrapping WrapperDataSource
Jesper Pedersen
do-not-reply at jboss.com
Tue Jul 30 09:32:10 EDT 2013
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion
"Re: unwrapping WrapperDataSource"
To view the discussion, visit: https://community.jboss.org/message/830511#830511
--------------------------------------------------------------
We don't support unwrapping a DataSource/XADataSource as it would expose the getConnection()/getXAConnection() methods. Calling these would result in connections not being controlled by IronJacamar.
You could looking doing a proxy object solution for WrapperDataSource::getWrappedObject() which calls the WrapperDataSource methods, and only the underlying datasource for methods outside the spec. *However*, it isn't as simple as it sounds.
So set the properties on the datasource that you need, and unwrap the connection instead - although it sounds like Oracle Advanced Queuing has a wacky API.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/830511#830511]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130730/88f50015/attachment-0001.html
More information about the jboss-user
mailing list