This content has been marked as final.
Show 1 reply
-
1. Re: still a problem with camel-jdbc and osgi
ffang Mar 29, 2012 8:59 PM (in response to sekaijin)Hi,
IMO, In OSGi container you should publish your DataSource as OSGi service but not register on JndiRegistry, then you can use OSGi style jndi name to refer it in other bundles.
take a look at related discussion[1] & to get more details.
The key point is you must use OSGi style jndi name to refer it, some name like
osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=suiviDataSource)
http://fusesource.com/forums/thread.jspa?messageID=10587
http://fusesource.com/forums/thread.jspa?messageID=10525
Freeman