You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by cclark <Se...@insightbb.com> on 2008/06/23 16:12:33 UTC
endpoint parameters
In the latest code, I noticed that the DefaultComponent.createEndpoint(String
uri) method now throws an exception if all the parameters aren't used. It
assumes there is a spelling mistake. However, some of the
consumers/producers expect these properties to be in the uri.
Example:
file://somedir?delay=1000
This behavior might break a few things in the next release. Should this do
log.warn instead?
--
View this message in context: http://www.nabble.com/endpoint-parameters-tp18070112s22882p18070112.html
Sent from the Camel - Development mailing list archive at Nabble.com.
RE: endpoint parameters
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
No the documentation could use a little love ;)
There is a JIRA ticket (CAMEL-485) for the "consumer" prefix stuff that some components use/support.
When there is some quite time then I am probably gonna do fire up the wiki editor up and improve the documentation.
We appreciate any feedback.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: cclark [mailto:Segovax@insightbb.com]
Sent: 23. juni 2008 17:14
To: camel-dev@activemq.apache.org
Subject: RE: endpoint parameters
Claus Ibsen wrote:
>
> file://somedir?delay=1000
>
> For file the delay option should be prefixed with consumer.
> So it should be:
> file://somedir?consumer.delay=1000
>
> Do you have other URI's that could break?
>
I don't. It just wasn't very clear to me in the documentation that those
parameters need to be prefixed with "consumer.". After running a few tests
see that it doesn't actually change behavior.
Thanks.
--
View this message in context: http://www.nabble.com/endpoint-parameters-tp18070112s22882p18071411.html
Sent from the Camel - Development mailing list archive at Nabble.com.
RE: endpoint parameters
Posted by cclark <Se...@insightbb.com>.
Claus Ibsen wrote:
>
> file://somedir?delay=1000
>
> For file the delay option should be prefixed with consumer.
> So it should be:
> file://somedir?consumer.delay=1000
>
> Do you have other URI's that could break?
>
I don't. It just wasn't very clear to me in the documentation that those
parameters need to be prefixed with "consumer.". After running a few tests
see that it doesn't actually change behavior.
Thanks.
--
View this message in context: http://www.nabble.com/endpoint-parameters-tp18070112s22882p18071411.html
Sent from the Camel - Development mailing list archive at Nabble.com.
RE: endpoint parameters
Posted by Claus Ibsen <ci...@silverbullet.dk>.
file://somedir?delay=1000
For file the delay option should be prefixed with consumer.
So it should be:
file://somedir?consumer.delay=1000
Do you have other URI's that could break?
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: cclark [mailto:Segovax@insightbb.com]
Sent: 23. juni 2008 16:13
To: camel-dev@activemq.apache.org
Subject: endpoint parameters
In the latest code, I noticed that the DefaultComponent.createEndpoint(String
uri) method now throws an exception if all the parameters aren't used. It
assumes there is a spelling mistake. However, some of the
consumers/producers expect these properties to be in the uri.
Example:
file://somedir?delay=1000
This behavior might break a few things in the next release. Should this do
log.warn instead?
--
View this message in context: http://www.nabble.com/endpoint-parameters-tp18070112s22882p18070112.html
Sent from the Camel - Development mailing list archive at Nabble.com.