Question

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!

Was it helpful?

Solution

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".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top