aspose file tools
The moose likes Spring and the fly likes MDP consuming from remote JBossMQ Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "MDP consuming from remote JBossMQ Queue" Watch "MDP consuming from remote JBossMQ Queue" New topic
Author

MDP consuming from remote JBossMQ Queue

Steven Landers
Ranch Hand

Joined: Nov 02, 2008
Posts: 30
Hi there-

I have a HA-JNDI JBossMQ queue hosted by JBoss 4.0.4 and an MDP that works when the MDP is deployed on the same container as the queue. When I put the MDP on another server, the subscriber count increases from 0 on the queue box, but the MDP is never called, and messages remain in the Queue. I'm using Spring 2.0 to wire the MDP to the queue.

Here is my Spring configuration:



- When I deploy the MDP on servername, it works fine. All messages are processed.
- When I deploy the MDP elsewhere, however, the MDP isn't called. The Queue is subscribed to (seen as 25 in jmx-console), and upon undeploying the queue itself, I get JMS Exceptions on the MDP server...indicating that there is some awareness of the queue.

Does anyone know why that is? Why does the MDP have to be on the same server as the queue for this?

Thanks,
Steven


Steven Landers
Ranch Hand

Joined: Nov 02, 2008
Posts: 30
I found the issue: It was actually receiving the message, but logging was misconfigured so I couldn't find an application-specific error I was having - nor could I see the message arrive. All is fixed - The servername server had the correct configuration - thus the difference in behavior.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MDP consuming from remote JBossMQ Queue
 
Similar Threads
How to connect to a remote MQ Queue using Spring MDPs and Weblogic
Problem with PropertyPlaceholderConfigurer
can't create connection to JBoss MQ using Spring JMS
Spring configuration for Testing JMS using Junit
Spring JMS with IBM Websphere MQ5.3.1