Put <endpoint> inside <camelContext> And what version of Camel are you using?
On Thu, Feb 13, 2014 at 12:19 PM, dtjep <didier.t...@sap.aphp.fr> wrote: > Hi, > I have tried with the following code but I have got the same error in the > endpoint : > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd" > > <bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"> > <property name="charset" value="iso-8859-1"/> > </bean> > <endpoint id="hl7listener" > > uri="mina2:tcp://localhost:15030?sync=true&codec=#hl7codec" /> > > <routeContext id="coolHL7" > xmlns="http://camel.apache.org/schema/spring"> > > <route id="cool"> > <from uri="hl7listener"/> > <to uri="file://deveai/data/bouchonmllp/coolHL7"/> > </route> > </routeContext> > </beans> > > Wat is wrong ? > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Definition-of-a-HL7-FTP-endpoint-simulated-with-a-spring-Camel-mllp-tp5746939p5747248.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io