we have a clustered application with jboss 4.2.2 in two nodes.in a single request some of the functionalities are invoked in one node and other in the second node. its like stateless beans in one node and MDB running in another node. its not happening for all requests and place of execution will vary from node to node in each request.so load balancing and HA-JMS are working fine.my question is ,is there any way to tell that mdb should be executed in the same node where we are invoking the Queue?
there is no functional issue with this ,only concern is tracking log message will be difficult for a single request. for that i have to look into log files in multiple nodes.
No, there's no way to do that. When the JMS server assigns the message to a receiver it doesn't know where it came from.