I have a setup where a java thread is running server-side
generating messages (with a subtopic header) for flex consumers. It
works fine when the flex consumer doesn't specify a subtopic, but
when the subtopic is used, the messageEvent handler is never
envoked. I have double-checked that the subtopics are valid and
match. Are there any other things I should be checking?
Turns out I had a data type mismatch in the subtopics. On the
flex side, the subtopic is required to be a String. In java,
flex.messaging.messages.AsyncMessage.setHeader will accept any
Object as a header value. In my case it was a Double. When I did a
toString, everything started working as expected.