Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 6A43010644 for ; Wed, 10 Apr 2013 16:14:52 +0000 (UTC) Received: (qmail 23441 invoked by uid 500); 10 Apr 2013 16:14:52 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23361 invoked by uid 500); 10 Apr 2013 16:14:51 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 23353 invoked by uid 99); 10 Apr 2013 16:14:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 16:14:51 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.128.182 as permitted sender) Received: from [209.85.128.182] (HELO mail-ve0-f182.google.com) (209.85.128.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 16:14:45 +0000 Received: by mail-ve0-f182.google.com with SMTP id m1so579770ves.41 for ; Wed, 10 Apr 2013 09:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Naanq/neDl4YZ3H7CgSpAyJjwa94cz7yejOm94O3dWY=; b=gg0Rb3ZVJEol2UhlyCbK8u9rjVvNmDkIZgUWZufp/+YQaVawSYh3svP8R+phy/2cXX gWtoT0LTvcVvZRtqBI9qA65U3wbcxdtJWb3CbI4bIu90uSqWqDDnOETV6GX0n9IuKEZr upsXNQU5NCpB+q9TQjIaPUZwMIO6uMlpxnhve0JLvbqzU33XvT8bGLsknHpu17sMxd98 pK+41TOkqJuS0x3YzXPC9p+kIuhTw9KYbUAwmEYm8gd4jfS+YjWv+WejxTLATyxhDOYV +4WAmoU+M/mVIRIVffcGq2l0BWhCQDnAb5pMX6xS2DscJgDaIm1cwc5KXIVveZdAkcoj 7tMA== X-Received: by 10.52.108.10 with SMTP id hg10mr1749947vdb.34.1365610465052; Wed, 10 Apr 2013 09:14:25 -0700 (PDT) Received: from [192.168.2.150] (c-98-218-173-79.hsd1.va.comcast.net. [98.218.173.79]) by mx.google.com with ESMTPS id d13sm508698vdj.8.2013.04.10.09.14.23 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Apr 2013 09:14:23 -0700 (PDT) Message-ID: <51658FDE.3070706@gmail.com> Date: Wed, 10 Apr 2013 12:14:22 -0400 From: Timothy Bish User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: NMSMessageID not getting set while sending message References: <1365607041327-4665820.post@n4.nabble.com> In-Reply-To: <1365607041327-4665820.post@n4.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 04/10/2013 11:17 AM, Rohit Magazine wrote: > My code sends a message to a queue and get a COA back. I am using C#.Net and > NMS. > Apache.NMS version 1.5.1.2739 > Apache.NMS.ActiveMQ version 1.5.6.2746 > > I am setting the following properties of the message > > Apache.NMS.IMessage request; > ... > request = session.CreateBytesMessage(someStringToSend); > ... > request.NMSCorrelationID = "Test_Message"; > ... > request.NMSReplyTo = mqDestination; > request.NMSDeliveryMode = MsgDeliveryMode.Persistent; > ... > request.Properties["JMS_IBM_MsgType"] = 1; > request.Properties["JMS_IBM_Report_COA"] = 256; > > .... > > producer.Send(amqDestination, request); > > The message is sent successfully but the COA returned has a different > correlationID than this one. I wanted the COA to have the same correlationID > as that of this one. > When i tried to compare the headers sent and received, i see the messageID > been sent is the one that i am getting as a correlationID of the COA, but > when i am trying to set the messageID in my request using > > request.NMSMessageId = "Test_Message"; > > It does not get set. > > I added the following properties too, but it still is getting someother > correlation ID. > > request.Properties["JMS_IBM_Report_Pass_Correl_ID"] = 64; > > Am i missing anything here or is there some other way of setting the > messageID ?? > > Any help is appreciated > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/NMSMessageID-not-getting-set-while-sending-message-tp4665820.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > NMSMessageID is set by the MessageProducer and cannot be set via client code as it must be uniquely identifiable per producer. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/