Debugging a FuseESB Application in Eclipse

ESB fuse uses karaf server with OSGi.

for code, if anyone has steps to get a debugger for the application, this will help.

I am currently using Eclipse Indigo. Since OSGi is used, we use Maven to create the same.

Which plugin will help Karaf with OSGi

+6
source share
3 answers

Java allows you to remotely debug JVM startup.

So, if you run the ESB with a debug argument, then it will work in debug mode, listening on port 5005.

davsclaus:/opt/fuse-esb-7.0.1.fuse-084$ bin/fuseesb debug Listening for transport dt_socket at address: 5005 

You can then perform remote debugging from Eclipse using this port number. This is standard Java remote debugging, and Eclipse has a wizard for that already. Its a debug wizard that has remote debugging functionality.

+7
source

You just need to put the following line in the start of the Fuse ESB script (e.g. fuseesb.bat or karaf.bat):

set KARAF_DEBUG = true

After that, Fuse ESB will start in debug mode using port 5005.

+3
source

1) just run $ fuse debug (jboss fuse version 6.1.0), debug port is 5005, 2) do the following in eclipse or jboss dev studio ii) debug configuration iii) remote java application β†’ create new iv) host: localhost port: 5005 v) press the debug button 3) put breakpoints in Java classes

+1
source

Source: https://habr.com/ru/post/923463/


All Articles