Results 1 to 3 of 3

Thread: HELP~~! MessageBroker returning null..

Hybrid View

  1. #1

    Default HELP~~! MessageBroker returning null..

    MessageBroker.getMessageBroker(null) returns a null. Hence i cannot perform messaging services.

    yes, i have the correct configuration. i have used congraet's testdrive and set the message broker using


    <flex:message-broker>
    <flex:message-service
    default-channels="my-polling-amf" />
    <flex:secured />
    </flex:message-broker>

    I have tried "FlexContext.getMessageBroker()" and this also returns a null too.

    I am using the AsyncMessage, MessageBroker, to send the message because i have headers (subtopics) defined. Otherwise if i use MessageTemplate it works fine.

    I am running the integration in JBoss. Everything else works fine except for this messaging nuisance.

    I know through Googling that a lot of ppl encountered similar problems but i am yet to find a solution to this.

  2. #2
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    The best approach is to not rely on MessageBroker.getMessageBroker at all. Use Spring to inject the Spring-managed MessageBroker instead.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  3. #3
    Join Date
    May 2012
    Posts
    1

    Default

    Quote Originally Posted by jeremyg484 View Post
    The best approach is to not rely on MessageBroker.getMessageBroker at all. Use Spring to inject the Spring-managed MessageBroker instead.
    I am having the same issue since integrating the MessageBroker with Spring. Do you have an example that does the same thing as MessageBroker.getMessageBroker?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •