Skip navigation
RupakKhurana
Currently Being Moderated

MessageBroker.getMessageBroker(null) returns null.. why?

Nov 30, 2011 12:06 PM

Tags: #getmessagebroker

Hello

I have seen lot of posts regarding this but no clear reason why this would happen. My server runs under Tomcat 6.0.33. In a spearate thread, I try to get MessageBroker msgBroker = MessageBroker.getMessageBroker(null); but it always returns null. In my web.xml, there is a valid servlet MessageBrokerServlet with load-on-startup = 1. In one of the posts Rohit suggested copy jta.jar to tomcat libs but it doesnot help either. I tried to wait 30 secs or so in my thread before invoking MessageBroker.getMessageBroker(null) and also tried to set param-name messageBrokerId in web.xml, but none seems to help.. please help...

 

Also tried MessageBroker broker = FlexContext.getMessageBroker() in the init() of my Servlet but it is also null.

 

thanks

Rupak

 

Message was edited by: RupakKhurana

 
Replies
  • Currently Being Moderated
    Dec 1, 2011 3:22 AM   in reply to RupakKhurana

    Copying jta.jar to tomcat libs, was for a manifestion of a different problem. In any case, as you answered yourself, you are all set now.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points