[jboss-user] [JCA/JBoss] - Howto retrieve DataSource inside of WrapperDataSource

aschulz do-not-reply at jboss.com
Mon Feb 19 08:53:08 EST 2007


Hi,

I have configured a datasource for oracle connections. The datasource object that i retrieve from the JNDI-Context is of typ WrapperDataSource.

I need the datasource as parameter for Oracle AQ AQjmsFactory.getTopicConnectionFactory(someds).

Now I get "JMS-112: Connection is invalid" from Oracle AQ. I think the problem is that getConnection() on a WrapperDataSource doesn't result in an OracleConnection but in some JBoss connection wrapper which does not implement Oracle specific extensions. 

I found a way to retrieve the underlying connection from a WrapperDataSource myself but I can't pass it as parameter for Oracle AQ.

So I would like to retrieve the Oracle datasource from the WrapperDataSource but I can't figure out how to do that.

Please can somebody help me.

Thanks in advance
Alex

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018821#4018821

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018821



More information about the jboss-user mailing list