I'm want to debug an external OSGI bundle to get to know how interacts with the rest of the other bundles, but I don't know how to do this.
The main program works with Karaf and OSGI, I can debug it attaching the Netbeans debugger without problems. The problem comes when I'm trying the debug an external bundle.
The external bundles are jar files that are put in the deploy/
folder of the program, then, the new bundles are installed. Karaf shows me that are installed. Also I can use those bundles as an user.
I have access to the source code of the main program and the bundle I want to debug also.
My goal is to debug this bundle to find out how interacts with the other bundles, specially what events trigger when have to write in the database.