Virtual queue manager on the receiving side

Using this method, the sending queue managers think that their messages are routed through an intermediate queue manager before reaching the target queue manager. The target queue manager doesn't actually exist. The 'intermediate' queue manager captures all the message traffic for this virtual target queue manager.

On the mobile device:
  • Create a connection from MOBILE0058QM to the SERVER23QM queue manager:
    Connection name
    SERVER23QM
    Network Adapter parameter
    Network:SAMPLEHOST:8082
  • Create a second connection to the SERVICEXQM that routes messages through the first connection:
    Connection name
    SERVICEXQM
    Network Adapter parameter
    SERVER23QM
    Note: This is not an alias. It is a via routing, indicating that messages headed for SERVICEXQM are to be routed via the SERVER23QM queue manager on the receiving side.

The via routing on the mobile device causes any messages that are put to SERVICEXQM to be directed to Server23QM. Server23QM gets the messages and notes that they are destined for the SERVICEXQM queue manager. It resolves the SERVICEXQM name and finds that it is an alias which represents the Server23QM queue manager (itself). The Server23QM queue manager then accepts the messages and puts them onto the queue.

Figure 1. Addressing a queue manager with two different names
Diagram showing an alternative to the previous figure. The sending queue manager send messages to an intermediate queue manager, which captures messages for a virtual target queue manager. The sending queue manager is not aware that the target queue manager does not really exist.

As an alternative to the above, you can keep the SERVICEXQM in existence, but move it from its original machine to the same machine (but a different JVM) as the Server23QM queue manager. SERVICEXQM needs to listen on a different port, so the connection from Server23QM to SERVICEXQM needs to be changed as well.


Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.