Hi Jared,

you can start karaf in debug mode:

bin/karaf debug

Then you can plug Eclipse debugger using port 5005 (default).

You can directly deploy your bundle from eclipse in Karaf.

So basically, you have a Karaf instance running, executing your eclipse
bundle. You can rebuild your bundle in eclipse and then just do a
bundle:update in Karaf. You will have basically the same as you have today.

Regards
JB

On 29/10/2018 16:58, Jared Stofflett wrote:
> I currently use an Equinox container with an embedded Jetty server to
> run webapps that make use of OSGI bundles. I'd like to use Karaf
> instead of plain Equinox. Currently I can build my code in eclipse
> with out a full maven build, and have those changes show up if I'm
> running the OSGI container in debug mode. Is it possible to create a
> launch configuration to do this with Karaf? All the tutorials I've
> looked at so far require you to build your bundle, start Karaf with
> debug mode enabled, and use a remote debug session. This would be a
> step backword from my current setup.
> 

Reply via email to