Discussion:
Caused by: java.net.MalformedURLException: no protocol: ${systemurl}
bharadwaj
2014-11-17 06:26:06 UTC
Permalink
For example , i am reading the camel property as below "systemurl"
<setProperty name="systemurl">
<xquery type="java.lang.string">/test/text()</xquery>
</setProperty>

<to uri="cxf:bean:WS?address=${systemurl}&amp;dataFormat=PAYLOAD" />
is it right to define? or is there any other way to read the camel property?



--
View this message in context: http://camel.465427.n5.nabble.com/Caused-by-java-net-MalformedURLException-no-protocol-systemurl-tp5759188.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Claus Ibsen
2014-11-17 13:13:52 UTC
Permalink
Hi

See this FAQ
http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html
Post by bharadwaj
For example , i am reading the camel property as below "systemurl"
<setProperty name="systemurl">
<xquery type="java.lang.string">/test/text()</xquery>
</setProperty>
<to uri="cxf:bean:WS?address=${systemurl}&amp;dataFormat=PAYLOAD" />
is it right to define? or is there any other way to read the camel property?
--
View this message in context: http://camel.465427.n5.nabble.com/Caused-by-java-net-MalformedURLException-no-protocol-systemurl-tp5759188.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: ***@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/
bharadwaj
2014-11-18 05:25:14 UTC
Permalink
When we use recipient List , could not handle exception bypassing to global
exception camel 2.10,
I know this has been fixed in camel 2.12. we cant migrate it now because
it's already in production.
Could you please give me any other alternative use it in camel:to?



--
View this message in context: http://camel.465427.n5.nabble.com/Caused-by-java-net-MalformedURLException-no-protocol-systemurl-tp5759188p5759230.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Willem Jiang
2014-11-18 06:56:30 UTC
Permalink
You can use message header to override the address setting of CXF just like this

from(routerEndpointURI).to("log:org.apache.camel?level=DEBUG")
   .setHeader(Exchange.DESTINATION_OVERRIDE_URL, constant(getServiceAddress()))
    .to(serviceEndpointURI);

--
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
Post by bharadwaj
When we use recipient List , could not handle exception bypassing to global
exception camel 2.10,
I know this has been fixed in camel 2.12. we cant migrate it now because
it's already in production.
Could you please give me any other alternative use it in camel:to?
--
View this message in context: http://camel.465427.n5.nabble.com/Caused-by-java-net-MalformedURLException-no-protocol-systemurl-tp5759188p5759230.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Loading...