Hi, all. I am trying to get messages from a servicemix-http service unit into a camel workflow. Here is the relevant snippet from the xbean.xml of my service unit.
<beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:mynamespace="urn:com.ns"> ... <http:endpoint service="mynamespace:HTTPInterface" endpoint="endpoint" targetService="mynamespace:interfaceRules" targetEndpoint="endpoint" role="consumer" locationURI="http://0.0.0.0:8192/ns/interface/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" /> Thus, ServiceMix looks to route HTTP traffic to the following service: {urn:com.ns}interfaceRules I've tried to use Camel to create this service several times, but I can't get the namespace to work properly. The closest I have gotten is the following xbean.xml snippet for a camel service unit: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mynamespace="urn:com.ns" ...> <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="jbi:service:mynamespace:interfaceRules"/> <to uri="log:com.ns.cameltest?level=WARN"/> </route> </camelContext> Unfortunately, this context creates this service: {mynamespace}interfaceRules... I can't find a way to get the namespace appropriately substituted in the camel context. Any thoughts? Thanks. Justin -- View this message in context: http://www.nabble.com/Camel-JBI-namespace-handling-tf4939283s12049.html#a14138742 Sent from the ServiceMix - User mailing list archive at Nabble.com.
