You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by davidthomas426 <da...@gmail.com> on 2015/05/26 22:58:22 UTC

Broker camel component, message selectors

I'd like to do something like this with the broker camel component:

<route>
    <from uri="broker:topic:X?selector=foo='bar'">
    <to uri="broker:queue:Y">
</route>

I'm getting org.apache.camel.ResolveEndpointFailedException about the
"selector" parameter of the endpoint. How can I set up this route? Do I need
to use MessageBrokerView, maybe? Or is the broker component not flexible
enough for this?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Broker-camel-component-message-selectors-tp4696923.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

sometime MQ can't close websocket connection automatically

Posted by William <st...@163.com>.
Dear all,

	I test websocket connection on the page, and often got error message.



the reason is due to MQ can’t close last websocket (with same clientID as identifier) automatically.
It’s ofter happen in my environment, when user refresh the page and this error occurred.
(1 time happen in 10 refresh tries as average)

Any good suggestion? or way of improvement? Thanks in advanced.

My Box:

	ActiveMQ 5.11.1
	Chrome Browser V42
	MacOS X 10.10.3

William
2015/5/27

Re: Broker camel component, message selectors

Posted by davidthomas426 <da...@gmail.com>.
Yes, I tried \" and &quot; plus I tried using %3D instead of =. None of them
have worked for me.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Broker-camel-component-message-selectors-tp4696923p4696925.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Broker camel component, message selectors

Posted by Tim Bain <tb...@alumni.duke.edu>.
Did you try wrapping the selector expression in escaped quotes?  (<from
uri="broker:topic:X?selector=\"foo='bar'\"">)  I've never used embedded
Camel routes, but that's how I'd expect it to work so give it a shot.
On May 26, 2015 3:17 PM, "davidthomas426" <da...@gmail.com> wrote:

> I'd like to do something like this with the broker camel component:
>
> <route>
>     <from uri="broker:topic:X?selector=foo='bar'">
>     <to uri="broker:queue:Y">
> </route>
>
> I'm getting org.apache.camel.ResolveEndpointFailedException about the
> "selector" parameter of the endpoint. How can I set up this route? Do I
> need
> to use MessageBrokerView, maybe? Or is the broker component not flexible
> enough for this?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Broker-camel-component-message-selectors-tp4696923.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>