Hello. I need some help with using camel-hl7. I'm new to servicemix and I've
been doing my best following all the tutorials and samples.
The error I am getting is:
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException:
Bean named 'hl7codec' must be of type
[org.apache.mina.filter.codec.ProtocolCodecFactory], but was actually of
type [org.apache.camel.component.hl7.HL7MLLPCodec]
My camel-context.xml file contains...
<camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/spring">
<package>ca.blah</package>
</camelContext>
<bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec">
<property name="charset" value="iso-8859-1"/>
</bean>
And I have a class that extends RouteBuilder in the ca.blah package...
from("mina:tcp://localhost:8888?sync=true&codec=hl7codec")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
// use plain String as message format
String body = exchange.getIn().getBody(String.class);
// return the response as plain string
exchange.getOut().setBody("Bye World");
}
})
.to("mock:result");
--
View this message in context:
http://www.nabble.com/must-be-of-type-org.apache.mina.filter.codec.ProtocolCodecFactory-error-tp24793496p24793496.html
Sent from the Camel - Users mailing list archive at Nabble.com.