On Wed, Jan 12, 2011 at 4:27 PM, Barry Kaplan <grou...@memelet.com> wrote:
>
> from("jms:topic:mytopic?query='from=today'") .process { ... }
>
> Its really that simple, although the value for query can be any string.
>
> For that topic I have defined a custom QueryBasedSubscriptionRecoveryPolicy
> to which activemq will provide the query parameter value when a client
> subscribes, giving my policy impl the chance to send the historical messages
> to the particular subscriber.
>
> But I'm guessing Claus that you already know all this about activemq, so am
> I misunderstanding what kind of example you are asking for?
>

How do you perceive that the JmsComponent / ActiveMQ component should
figure out the query parameter is for a custom
QueryBasedSubscriptionRecoveryPolicy ?

There are a zillion options in ActiveMQ and not all is possible to
compute from an uri string where they actually should be used.

I think to remedy they there need to be more prefixes, so query would
have to be prefixed with something that ties it to recoveryPolicy, so
maybe? ?recovery.policy.queue=XXXX


> However, there are also other uri paramters that activemq will process that
> the jms/activemq components won't let thru. It seems that that the camel
> components pretty much must duplicate the activemq uri model release per
> release. Since activemq will validate the uri, it seems that the activemq
> component (not the jms component though) should not fail for parameters it
> does not recognize. If this were the case though, I'm guessing that some
> errors from activemq might come much later than they would if issue by the
> camel component. But surely this can be configurable decision.
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/ActiveMQ-query-URI-parameter-not-accepted-tp3337627p3338324.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to