Hi,

I have not reviewed the whole code but at least one thing is wrong.
To use your component you should do:

<camel:to uri="my:endpointname"/>

my is the id of your component. Camel finds it by looking for a spring bean with that id. Of course you could also use the camel bean component but then you would not write a component.

Christian

Am 25.11.2011 11:04, schrieb saiya-jin:

<bean id="my" class="com.xxx.MyComponent">
        <property name="host" value="XXX"/>
        <property name="port" value="XXX"/>
        <property name="instanceId" value="XXX"/>
        <property name="username" value="XXX"/>
        <property name="password" value="XXX"/>
</bean>   

<camel:camelContext id="camelContext">
        <camel:route>
                <camel:from uri="cdi:queue:input" />
                <camel:log message="Recieved message in CDI part: ${body}"
loggingLevel="WARN" />
                <camel:to uri="bean:my" />
        </camel:route>
</camel:camelContext>


--

Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to