activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From legolas <rpeter...@dstoutput.com>
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
controller?

When the message is published, it goes through a spring controller first
before being sent to ActiveMQ 
    @MessageMapping("{product}/{security}/{system}/{tenant}/v1/pub") 
    @SendTo("/topic/receipt") 
    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: http://activemq.2283324.n4.nabble.com/Selectors-not-working-in-STOMP-over-sockjs-spring-integration-setup-tp4678358p4678367.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message