camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MichaelAtSAG <mebevilac...@gmail.com>
Subject Spring Bean represented as endpoint
Date Fri, 16 Aug 2013 20:35:53 GMT
All,
I am trying to move endpoint properties into a bean, yet the endpoint is not
working this way. I think it is a simple typo but can't find it:

====
THIS WORKS
====

<?xml version="1.0" encoding="UTF-8"?>
<beans 
	<camelContext>
	 		<endpoint id="websocketEndpoint"
uri="websocket://{{wsHost}}:{{wsPort}}/nerv-tweet?staticResources=classpath:.&amp;sendToAll=true"
/> 
	</camelContext>
</beans>

====
AND THIS DOES NOT WORK, YET FUNCTIONALLY THE SAME
====

<?xml version="1.0" encoding="UTF-8"?>
<beans 
	<bean id="appWebSocket"
class="org.apache.camel.component.websocket.WebsocketComponent">
		<property name="host" value="localhost" />
		<property name="port" value="9090" />
		<property name="staticResources" value="classpath:." />
	</bean>
	<camelContext>
	 	<endpoint id="websocketEndpoint"
uri="appWebSocket://nerv-tweet?sendToAll=true" /> 
	</camelContext>
</beans>

Any help to see the problem would be most welcome!
Thanks,
Michael



--
View this message in context: http://camel.465427.n5.nabble.com/Spring-Bean-represented-as-endpoint-tp5737433.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message