I need to connect to WebSphere MQ and set the correct header fields in the
WMQ message header.

This works fine for simple fire&forget as well as for request messages since
I'm using a DestinationResolver to set all the required poperties to the
destination.

    public Destination resolveDestinationName(Session session, String
destinationName, boolean isPubSubDomain) throws JMSException {
        LOGGER.debug("Resolve Destination Name: " + destinationName);
        Destination destination = super.resolveDestinationName(session,
destinationName, isPubSubDomain);
        if (destination instanceof MQDestination) {
            MQDestination mqDestination = (MQDestination) destination;
            mqDestination.setEncoding(getEncoding());
            mqDestination.setFailIfQuiesce(getFailIfQuiesce());
            mqDestination.setTargetClient(getTargetClient());
            mqDestination.setMQMDWriteEnabled(true);
            mqDestination.setMQMDReadEnabled(true);
           
mqDestination.setMQMDMessageContext(CommonConstants.WMQ_MDCTX_SET_IDENTITY_CONTEXT);
            mqDestination.setPriority(CommonConstants.WMQ_PRI_QDEF);
            mqDestination.setPersistence(CommonConstants.WMQ_PER_QDEF);
            // mqDestination.setExpiry(CommonConstants.WMQ_EXP_UNLIMITED);
        }
        return destination;
    }

The problem is, that the destination resolver is not called for the replyTo
destination given by the WMQ message.

How can I apply the properties mentioned above also for the replyTo
destination?

Patrick



--
View this message in context: 
http://camel.465427.n5.nabble.com/DestinationResolver-for-Reply-Messages-tp5727490.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to