How to bundle database drivers and expose a connection pool? [message #722584] |
Tue, 06 September 2011 09:26 |
Paul Ramsden Messages: 84 Registered: February 2011 Location: BW, Germany |
Member |
|
|
I want to be able to connect to DB2 and MS-SQL databases from my application and connection pooling should also be enabled. Also, I want to be able to configure the connections depending on the current environment - Test, Staging, Production.
I assume the way to do this is to define a separate bundle for each database which contains either the necessary jars or a link to the jars location. This bundle will export the API package. A further bundle imports the API packages and creates the connection pools and handles connection requests from application plugins.
Is this a good approach? Are there any working examples out there as, so far, I have not been able to get it to work? (the problem seems to be with the export of the JDBC package)
Thanks
Paul
[Updated on: Tue, 06 September 2011 09:41] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03019 seconds