|Re: JDBC Connection Pool [message #818897 is a reply to message #816991]
||Mon, 12 March 2012 08:53
| Arnaud MERGEY
Registered: July 2009
It depends on what do you mean by using a jdbc connection pool in RAP,|
- If the pool is managed by your RAP application, you just have to use a pool library as any normal application. For example commons dbcp you can download from Apache is already "osgified", there are probably others in Orbit.
- If you deploy your application as a WAB inside an application server supporting OSGI, and you want to rely on a pool managed by the application server itself, it depends of the application server you are working with, there are good chances for the datasource to be exposed a service.
- If you deploy your application as a legacy WAR file, using equinox servlet bridge and you want to use the pool managed by your application server, there are many topics about this subject, you can googled to find them. One solution is to update osgi.contextClassLoaderParent to ccl in launch.ini, so you can lookup the datasource using JNDI.
Hope this help,
Powered by FUDForum
. Page generated in 0.03889 seconds