activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From legolas <>
Subject Re: Selectors not working in STOMP over sockjs spring integration setup
Date Wed, 26 Feb 2014 18:01:57 GMT
Looks like the custom header is not included in the message when I look at it
via the broker webconsole.  

In addition, it looks like it goes through the interceptor before it goes to
the controller.  The way I understand it is when it leaves the controller,
the return value is sent as a payload in a message to ActiveMQ.  How do I
set a header or property in the message that gets sent to ActiveMQ from the

When the message is published, it goes through a spring controller first
before being sent to ActiveMQ 
    public String publish( @DestinationVariable ("product") String product, 
           @DestinationVariable("security") String security, 
           @DestinationVariable("system") String system, 
           @DestinationVariable("tenant") String tenant, 
           String message) throws Exception 
                //do some stuff 
               return message // this return value is sent as a payload in a
message to ActiveMQ

Did you check some of the basics?  For example - looking at the message on
the broker with the webconsole or via jmx to ensure the header is set on the
message?  Also jmx can be used to verify the selector set by the client. 

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message