c3p0 loop and OSGi

534 views Asked by At

I wrap my project in OSGi bundle(just call my first start method from Activator.start()). In my project I use ORM ActiveObjects and c3p0 pool. All of project dependencies (jar librarys) are in class path. If I run my project with c3p0 it is takes about 5 minutes to 1 query to DB. Without c3p0 it is works correctly. In what is a problem? Thanks a lot!

1

There are 1 answers

2
Manuel Selva On BEST ANSWER

Maybe your issue is related to OSGi specific class loading mechanism. In OSGi your dependencies libraries must not be in the flat java classpath but in the bundle classpath. To do that we usually create a bundle version for each library exposing the library jar as OSGi "packages".