Hi all,
I tried to deploy a configured MINA endpoint using the following bean
description in the Camel configuration file.
.....
<!-- ============================ -->
<!-- MINA Beans -->
<!-- ============================ -->
<bean id="myMinaFactory"
class="org.apache.camel.component.mina.MinaComponent">
<constructor-arg index="0" ref="camelContext" />
</bean>
<bean id="myMinaEndpoint" factory-bean="myMinaFactory"
factory-method="createEndpoint">
<constructor-arg index="0" ref="myMinaConfig" />
</bean>
<bean id="myMinaConfig"
class="org.apache.camel.component.mina.MinaConfiguration">
<property name="protocol" value="tcp" />
<property name="host" value="localhost" />
<property name="port" value="10023" />
<property name="sync" value="true" />
<property name="minaLogger" value="true" />
</bean>
<!-- ============================ -->
<!-- Camel Context -->
<!-- ============================ -->
<camelContext id="camelContext"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="bean:myMinaEndpoint" />
<to uri="bean:myBean?methodName=doSomething" />
<to uri="file:/home/paul/Desktop/output.txt" />
</route>
</camelContext>
This configuration file is actually provided in one of the Camel tutorials
and it seems to work if used outside ServiceMix.
However when I deploy it in ServiceMix I get the following error message in
my log:
WARN - ScheduledPollConsumer - An exception occured while polling:
Endpoint[bean:myMinaEndpoint]: endpointUri is not specified and
org.apache.camel.component.mina.MinaEndpoint does not implement
createEndpointUri() to create a default value
Any help would be greatly appreciated.
Thanks and regards,
Paul
--
View this message in context:
http://old.nabble.com/Deploying-a-configured-MINA-socket-endpoint-tp26657291p26657291.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.