Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » JDBC Connection Pool
JDBC Connection Pool [message #816995] Fri, 09 March 2012 13:53 Go to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
How do I create and use a jdbc connection pool in RAP.

Is there an example on how to do this or can somebody give me a hint how to start with this?

Regards Bertin
Re: JDBC Connection Pool [message #818894 is a reply to message #816995] Mon, 12 March 2012 08:53 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 215
Registered: March 2010
Location: France
Senior Member
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,
Previous Topic:JDBC Connection Pool
Next Topic:Very basic presentation factory
Goto Forum:

Current Time: Thu Jan 18 08:12:24 GMT 2018

Powered by FUDForum. Page generated in 0.01290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software