-
1. Re: Debug Camel spring application in Eclipse
ffang Nov 20, 2012 7:48 PM (in response to sergevil)Hi,
For the remote way, in the term where you start FUSE ESB, do
export KARAF_DEBUG=true
then you can debug FUSE ESB in eclipse with remote port 5005.
I also believe you can debug your camel application directly in eclipse, but if you wanna it same as a OSGi container, you may need use pax-exam-karaf to write your test.
Freeman
-
2. Re: Debug Camel spring application in Eclipse
sergevil Nov 20, 2012 10:36 PM (in response to ffang)Thank you. The way that I found is running the spring env using the next function:
public void startWorkflow() {
parent = new FileSystemXmlApplicationContext("src/main/resources/META-INF/spring/camel-context.xml");
GenericXmlApplicationContext gac = new GenericXmlApplicationContext();
gac.setParent(parent);
CamelContext context = null;
gac.refresh();
try {
Thread.sleep(1000000);
}
catch (InterruptedException ignore) {
}
}