views:

13

answers:

0

Hello,

I created a quick web site with ActiveMQ's Ajax javascript message handlers to subscribe to a topic that is published by a JAX-RS/Spring web service.

I noticed something rather weird, the ActiveMQ ajax does not call the message handler function if I publish a MapMessage from JmsTemplate, however it does call it if I publish it from another javascript producer (on the same topic). The only way my handler was being called is if I send TextMessage from JmsTemplate.

Has anyone experienced this before? I know there are gotchas with Spring JmsTemplate, but they're mostly connection related as far as I know.