Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging FuseESB application in Eclipse

Fuse ESB uses karaf server with OSGi.

for the code if anybody has steps to get the debugger for the application it will help.

I am currently using Eclipse Indigo. As OSGi is used we are using Maven to build the same.

Which plugin will help for Karaf with OSGi

like image 404
R-JANA Avatar asked Aug 22 '12 09:08

R-JANA


People also ask

How do I debug a .class file in Eclipse?

There are two ways to debug a class file. The first way is to set the decompiler preference, and to realign the line number. The second way is to check the debug mode in the decompiler menu bar. When your Eclipse workspace is in debug perspective, the debug mode becomes the default.


3 Answers

Java allows you to remote debug any JVM running.

So if you start the ESB with a debug argument, then it will run 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

Then you can do remote debugging from Eclipse using that port number. This is standard Java remote debugging, and Eclipse has a wizard for that already. Its the debug wizard which has a remote debug functionality.

like image 167
Claus Ibsen Avatar answered Oct 03 '22 06:10

Claus Ibsen


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

set KARAF_DEBUG=true

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

like image 44
Zlosny Avatar answered Oct 03 '22 06:10

Zlosny


1) just run $fuse debug (jboss fuse 6.1.0 version) debug port is 5005, 2) in eclipse or jboss dev studio do following i) run ii) debug configuration iii) remote java application -> create new iv) host: localhost, port : 5005 v) click on debug 3) put breakpoints in java classes

like image 39
Krishna Gangaraju Avatar answered Oct 03 '22 07:10

Krishna Gangaraju