Use of BTM in OSGi environment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Use of BTM in OSGi environment

Martin Lichtin
Hi

I wanted to enquire if BTM can be used within an OSGi environment?

For example, one of the differences is that loading a class by name typically does not work in OSGi.
And therefore code like

PoolingDataSource myDataSource = new PoolingDataSource();                                         (1)
myDataSource.setClassName("oracle.jdbc.xa.client.OracleXADataSource");                            (2)

(from http://docs.codehaus.org/display/BTM/JdbcConfiguration2x) will not work.
Is there a way to pass a bean reference to the BTM connection pool?

Thanks
Martin

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Use of BTM in OSGi environment

Ludovic Orban-2
Hi,

This has been implemented a while ago but hasn't been released yet: http://jira.codehaus.org/browse/BTM-83

If you want to give it a try, you need to get the BTM sources and built it yourself. It's not any harder than "git clone ... && mvn install" though. I'd be happy to know if that feature works for you so if you can, please report the outcome of your test here.

Cheers,
Ludovic


On Wed, Apr 24, 2013 at 10:06 AM, Martin Lichtin <[hidden email]> wrote:
Hi

I wanted to enquire if BTM can be used within an OSGi environment?

For example, one of the differences is that loading a class by name typically does not work in OSGi.
And therefore code like

PoolingDataSource myDataSource = new PoolingDataSource();                                         (1)
myDataSource.setClassName("oracle.jdbc.xa.client.OracleXADataSource");                            (2)

(from http://docs.codehaus.org/display/BTM/JdbcConfiguration2x) will not work.
Is there a way to pass a bean reference to the BTM connection pool?

Thanks
Martin


Loading...