I'm running this in a standalone java app using Spring. Its camel 2.11. I was under the impression from the various samples that I have seen that the below route should start and print Hello World without publishing a message to this route. Like a main class in java. Am I wrong? I am using the timer component right now to do the same job.
Right now, there is no error. It just keeps running, but Hello World isn't printed. Thanks > <camel:route id="loginRoute" > > > <camel:from uri="direct:start"/> > > <camel:log message="Hello World" > loggingLevel="INFO"/> > > </camel:route> > Geoffrey A Gershaw Credit eTrading Development +1 919 994 6412 (*102 6412) -----Original Message----- From: Raul Kripalani [mailto:[email protected]] Sent: Thursday, July 18, 2013 2:21 PM To: [email protected] Subject: Re: Hello World? Maybe not :) Hey Geoffrey, A stacktrace would help us help you ;-) Where and how are you deploying this route? Apache ServiceMix? Tomcat, JBoss, etc.? And is there another Camel route or a unit test publishing to the direct endpoint? Bear in mind that a direct consumer doesn't listen on an external interface/protocol. It's rather intended for in-memory, internal Camel-to-Camel invocations. Thanks, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Thu, Jul 18, 2013 at 6:40 PM, Gershaw, Geoffrey < [email protected]> wrote: > Hi All, > > > > I have the simplest problem that apparently I can't figure out. I've > never used direct:start as an endpoint before and I can't seem to get it > to work the way I would expect it to. > > > > My config is below . I would like the route to start and print hello > world. Seems easy. What am I overlooking? > > > > Thanks for your help > > > > <?xml version="1.0" encoding="UTF-8"?> > > <beans default-init-method="init" > > xmlns="http://www.springframework.org/schema/beans" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xmlns:context="http://www.springframework.org/schema/context" > > xmlns:util="http://www.springframework.org/schema/util" > > xmlns:camel="http://camel.apache.org/schema/spring" > > > xsi:noNamespaceSchemaLocation="http://camel.apache.org/schema/spring/cam > el-spring.xsd" > > xsi:schemaLocation=" > > > http://www.springframework.org/schema/beans > > > http://www.springframework.org/schema/beans/spring-beans.xsd > > > http://www.springframework.org/schema/context > > > http://www.springframework.org/schema/context/spring-context-3.0.xsd > > > http://www.springframework.org/schema/util > > > http://www.springframework.org/schema/util/spring-util-3.0.xsd > > > http://camel.apache.org/schema/spring > > > http://camel.apache.org/schema/spring/camel-spring.xsd > > "> > > > > <camelContext xmlns="http://camel.apache.org/schema/spring" > > > > <dataFormats> > > <jaxb id="myJaxb" prettyPrint="true" > contextPath="com.prasad.sample"/> > > </dataFormats> > > > > <camel:route id="loginRoute" > > > <camel:from uri="direct:start"/> > > <camel:log message="Hello World" > loggingLevel="INFO"/> > > </camel:route> > > </camelContext> > > > > </beans> > > > > > > > > Geoffrey A Gershaw > > CREDIT SUISSE > > Information Technology | Credit eTrading Development, KFVB 525 > > 7033 Louis Stephens Drive | 27560 Research Triangle Park | United States > > Phone +1 919 994 6412 > > [email protected] | www.credit-suisse.com > <http://www.credit-suisse.com/> > > > > > > > =============================================================================== > Please access the attached hyperlink for an important electronic > communications disclaimer: > http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html > > =============================================================================== > > =============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ===============================================================================
