On Thu, Jul 9, 2009 at 8:26 AM, Willem Jiang<[email protected]> wrote: > Yeah, it is much clearer now. > Just one more question. > Do we have any plan to support tracer directly in Java DSL land? I recently added:
CamelContext.setTracing(boolean) so its basically in the Java route builder to do getContext().setTracing(true); > Like enableTrace() and disableTrace() method in the BuilderSupport class? > > Willem > > > Claus Ibsen wrote: >> >> On Thu, Jul 9, 2009 at 6:39 AM, Willem Jiang<[email protected]> >> wrote: >>> >>> Hi Claus, >>> >>> I found the debug.xml and trace.xml were removed in camel-spring resource >>> directory. >>> Is there any reason to remove the trace.xml? >> >> Yeah you should use the trace attribute on <camelContext> to enable or >> disable tracing. >> Or add a <bean> with the Tracer yourself so you can configure it, eg >> how it should output tracing. >> >> The trace.xml is not needed. It was needed at the time where there >> was no trace attribute on CamelContext, but we got that now. >> >> >>> Willem >>> >>> Claus Ibsen wrote: >>>> >>>> Hi >>>> >>>> The debug newer got implemented so its not really useable. If you want >>>> to debug then I recommend the FUSE Integration Designer Tooling that >>>> has visual debugging. >>>> http://fusesource.com/products/fuse-integration-designer/ >>>> >>>> The debug option is gonna get removed in 2.0. >>>> >>>> As it is based on the interceptor principle you can do you own poor >>>> mans debugger by adding a spring bean that is an instance of >>>> InterceptStrategy, then Camel will pick it up and use it. Just like >>>> the Debugger did. >>>> >>>> >>>> >>>> >>>> On Wed, Jul 8, 2009 at 11:51 PM, buzzterrier<[email protected]> >>>> wrote: >>>>> >>>>> I get the following error trying to run camel from ant with the debug >>>>> arg. I >>>>> checked and debug.xml is indeed missing from the 2.0-M2 release. >>>>> >>>>> >>>>> [java] [ main] MainSupport >>>>> INFO Apache Camel 2.0-M2 starting >>>>> [java] [ main] >>>>> ClassPathXmlApplicationContext >>>>> INFO Refreshing >>>>> >>>>> >>>>> org.springframework.context.support.classpathxmlapplicationcont...@253498: >>>>> display name [org.spri >>>>> ngframework.context.support.classpathxmlapplicationcont...@253498]; >>>>> startup >>>>> date [Wed Jul 08 14:45:33 PDT 2009]; root of context hierarchy >>>>> [java] [ main] XmlBeanDefinitionReader >>>>> INFO Loading XML bean definitions from class path resource >>>>> [META-INF/services/org/apache/camel/spring/debug.xml] >>>>> [java] [ main] MainSupport >>>>> INFO Apache Camel 2.0-M2 stopping >>>>> [java] [ main] MainSupport >>>>> ERROR Failed: >>>>> org.springframework.beans.factory.BeanDefinitionStoreException: >>>>> IOException >>>>> parsing XML document fro >>>>> m class path resource >>>>> [META-INF/services/org/apache/camel/spring/debug.xml]; >>>>> nested exception is java.io.FileNotFoundException: class path resource >>>>> [META-INF/services/org/apache/camel/spring >>>>> /debug.xml] cannot be opened because it does not exist >>>>> [java] >>>>> org.springframework.beans.factory.BeanDefinitionStoreException: >>>>> IOException parsing XML document from class path resource >>>>> [META-INF/services/org/apache/camel/spring/debug.xml]; n >>>>> ested exception is java.io.FileNotFoundException: class path resource >>>>> [META-INF/services/org/apache/camel/spring/debug.xml] cannot be opened >>>>> because it does not exist >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) >>>>> [java] at >>>>> org.apache.camel.spring.Main.getParentApplicationContext(Main.java:159) >>>>> [java] at >>>>> >>>>> >>>>> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:227) >>>>> [java] at org.apache.camel.spring.Main.doStart(Main.java:185) >>>>> [java] at >>>>> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) >>>>> [java] at >>>>> org.apache.camel.impl.MainSupport.run(MainSupport.java:120) >>>>> [java] at >>>>> org.apache.camel.impl.MainSupport.run(MainSupport.java:298) >>>>> [java] at org.apache.camel.spring.Main.main(Main.java:97) >>>>> [java] Caused by: java.io.FileNotFoundException: class path resource >>>>> [META-INF/services/org/apache/camel/spring/debug.xml] cannot be opened >>>>> because it does not exist >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142) >>>>> [java] at >>>>> >>>>> >>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) >>>>> >>>>> ----- >>>>> Buzzterrier >>>>> >>>>> http://buzzterrier.blogspot.com/ View my blog: Ordinary Average >>>>> Developer... >>>>> -- >>>>> View this message in context: >>>>> >>>>> http://www.nabble.com/Missing-debug.xml-in-2.0-M2-tp24400032p24400032.html >>>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>> >> >> >> > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
