Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C704EA48 for ; Wed, 13 Feb 2013 11:32:55 +0000 (UTC) Received: (qmail 85446 invoked by uid 500); 13 Feb 2013 11:32:54 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 85209 invoked by uid 500); 13 Feb 2013 11:32:54 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 85143 invoked by uid 99); 13 Feb 2013 11:32:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 11:32:51 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2013 11:32:45 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U5aZc-0002By-Oq for users@camel.apache.org; Wed, 13 Feb 2013 03:32:24 -0800 Date: Wed, 13 Feb 2013 03:32:24 -0800 (PST) From: prueegg To: users@camel.apache.org Message-ID: <1360755144763-5727490.post@n5.nabble.com> Subject: DestinationResolver for Reply Messages MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.