You'd have a hard time sending messages without connecting to a broker, so I'd suggest confirming first that you actually see a connection in JMX (I'd recommend using JConsole's MBeans tab). If you don't, it probably means you're connecting to a different broker than you think you are.
If you do, try publishing a message via the web console and see what happens. Also, look to see if you see your producer listed in JMX under the queue to which you're publishing; sometimes you will abd sometimes you won't depending on how you're publishing, but if you do then you know you're connecting properly. Also make sure Producer Flow Control isn't kicking in. Tim On May 2, 2015 2:12 PM, "tiger3" <hli...@gmail.com> wrote: > Hi, > > I came across a problem recently. The java program serves as message > producer and sends message to a queue. When the program is run in my > laptop(a windows machine), that message is logged in activemq logging and > shows in the queue when I look at the activemq web console(running in > linux). However, when that java program is run in linux, that message is > never received by activemq broker, as it never shows up in activemq broker > logs or activemq web console. I debugged the java code and noticed that > that > message was sent over to the broker without any exception thrown, though it > seems that the message was not received in the broker end. > > The message broker is activeMQ 5.10.0 running in linux. I wonder what I > need > to do to find the root cause of the problem. I did some search, some people > recommend tcpdump on port. However, I do not have permission to run tcpdump > command in that linux server. > > Any clue? > > Thanks. > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/message-is-not-shown-in-queue-of-activemq-broker-though-it-is-sent-tp4695998.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >