You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by rszeto <ri...@gmail.com> on 2006/03/26 18:46:23 UTC
STOMP's selector support
Hi,
I was interested in seeing if this patch for STOMP to support selectors
and custom JMS properties can be applied back into 3.x branch as well:
http://forums.activemq.org/posts/list/341.page.
If not, then I will have to maintain a custom version of 3.x, which I would
prefer not to do.
BTW, I could not find the fix either in the 4.x branch:
https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java
Am I looking in the wrong place? Please let me know.
Thanks,
Rick
--
View this message in context: http://www.nabble.com/STOMP%27s-selector-support-t1345045.html#a3597860
Sent from the ActiveMQ - User forum at Nabble.com.
Re: STOMP's selector support
Posted by James Strachan <ja...@gmail.com>.
BTW I would recommend you upgrade to 4.x as soon as you can; we have
done heaps of new test cases for Stomp in 4.x which found quite a few
issues which we've fixed.
James
On 3/26/06, James Strachan <ja...@gmail.com> wrote:
> On 3/26/06, rszeto <ri...@gmail.com> wrote:
> > Hi,
> > I was interested in seeing if this patch for STOMP to support selectors
> > and custom JMS properties can be applied back into 3.x branch as well:
> > http://forums.activemq.org/posts/list/341.page.
>
> We welcome patches :)
>
> > If not, then I will have to maintain a custom version of 3.x, which I would
> > prefer not to do.
> >
> > BTW, I could not find the fix either in the 4.x branch:
> > https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java
> > Am I looking in the wrong place? Please let me know.
>
> That file has the support for the standard JMS headers and custom
> properties. Though its the subscribe command which deals with passing
> in the selector string.
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
--
James
-------
http://radio.weblogs.com/0112098/
Re: STOMP's selector support
Posted by James Strachan <ja...@gmail.com>.
There are a few 'magic' headers in Stomp described here...
http://incubator.apache.org/activemq/stomp.html
which are mapped to standard JMS headers. One of those is 'correlation-id'
"correlation-id" in stomp maps to the standard JMS header
JMSCorrelationID; so in a JMS world you'd get set that via the
standard JMS properties which are then mapped to correlation-id.
Though the header should be preserved if you are using a 100% stomp
environment; its just it might change from correlation-id <->
JMSCorrelationID if you are using JMS on one end.
Which version of ActiveMQ are you using?
On 6/23/06, fucema <fu...@gmail.com> wrote:
>
> James,
>
> I am using a ruby stomp client to produce a message with a stomp header
> named "correlation-id" (all lower case as specified in the AMQ Stomp
> documentation).
>
> However, my stomp consumer receives the message MINUS the correlation-id
> header.
>
> But if I alter the spelling and produce a message with the header
> "Correlation-id" (capitalized) then the consumer receives the message with
> this header present.
>
> Can you provide any insight into this behaviour? Thanks!
> --
> View this message in context: http://www.nabble.com/STOMP%27s-selector-support-t1345045.html#a5002978
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>
--
James
-------
http://radio.weblogs.com/0112098/
Re: STOMP's selector support
Posted by fucema <fu...@gmail.com>.
James,
I am using a ruby stomp client to produce a message with a stomp header
named "correlation-id" (all lower case as specified in the AMQ Stomp
documentation).
However, my stomp consumer receives the message MINUS the correlation-id
header.
But if I alter the spelling and produce a message with the header
"Correlation-id" (capitalized) then the consumer receives the message with
this header present.
Can you provide any insight into this behaviour? Thanks!
--
View this message in context: http://www.nabble.com/STOMP%27s-selector-support-t1345045.html#a5002978
Sent from the ActiveMQ - User forum at Nabble.com.
Re: STOMP's selector support
Posted by James Strachan <ja...@gmail.com>.
On 3/26/06, rszeto <ri...@gmail.com> wrote:
> Hi,
> I was interested in seeing if this patch for STOMP to support selectors
> and custom JMS properties can be applied back into 3.x branch as well:
> http://forums.activemq.org/posts/list/341.page.
We welcome patches :)
> If not, then I will have to maintain a custom version of 3.x, which I would
> prefer not to do.
>
> BTW, I could not find the fix either in the 4.x branch:
> https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/stomp/Send.java
> Am I looking in the wrong place? Please let me know.
That file has the support for the standard JMS headers and custom
properties. Though its the subscribe command which deals with passing
in the selector string.
--
James
-------
http://radio.weblogs.com/0112098/