Announcement Announcement Module
Collapse
No announcement yet.
MessageTemplate not working as expected Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MessageTemplate not working as expected

    Hi everyone,

    I have a question about flex messaging. What may prevent a messagetemplate from sending messages ?
    Concidering the following code snippet:
    Code:
    messageTemplate.send(new AsyncMessageCreator() {
                    public AsyncMessage createMessage() {
                        AsyncMessage msg = messageTemplate.createMessageForDestination("clientFeed");
                        msg.setHeader("DSSubtopic", "mySubTopic");
                        msg.setBody(myBody);
                        
                        return msg;
                    }
    The message template is correctly initialized (injected) and the publish channel as well as the flex client subscriber are configured. I even can receive the messages in case the upper send function is called within a local thread, e.g. "Thread-10". But if the trigger comes from the flex client, e.g. "http-bio-80-exec-4", the messages are not sent to the subscriber (flex client). Is there any security aspect that prevent the "http-" threads to use the messaging channel ?

    Kind regards
    Sakr
Working...
X