Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 37990 invoked from network); 6 Oct 2006 09:12:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2006 09:12:08 -0000 Received: (qmail 92328 invoked by uid 500); 6 Oct 2006 09:12:07 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 92312 invoked by uid 500); 6 Oct 2006 09:12:07 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 92303 invoked by uid 99); 6 Oct 2006 09:12:07 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2006 02:12:07 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=picoflorin@yahoo.co.uk; domainkeys=good X-ASF-Spam-Status: No, hits=3.9 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,HTML_MESSAGE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [217.12.10.241] ([217.12.10.241:44699] helo=web26204.mail.ukl.yahoo.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id E4/32-18133-1ED16254 for ; Fri, 06 Oct 2006 02:12:03 -0700 Received: (qmail 26314 invoked by uid 60001); 6 Oct 2006 09:11:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RJ7zZoIGm++GgC23l/X1rZaoiNvLKOToApnnwZt/FQ1p0ARdA+azDDBm6/8Tthi/LTFCFFtWB0o6+jN5QYRR0563QPbgwr3uf4s0JESt1NLUi+6s0+fp7k7wbwdjJSUAMji+1Oqsv8K5VrS/9o0eyGjuMZeJAuotNDLhFavPt80= ; Message-ID: <20061006091158.26312.qmail@web26204.mail.ukl.yahoo.com> Received: from [86.121.29.145] by web26204.mail.ukl.yahoo.com via HTTP; Fri, 06 Oct 2006 10:11:58 BST Date: Fri, 6 Oct 2006 10:11:58 +0100 (BST) From: Pico Florin Subject: Setting the Delivery Mode for a message To: activemq-users@geronimo.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1495804181-1160125918=:26188" Content-Transfer-Encoding: 8bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-1495804181-1160125918=:26188 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi! I want to know how you can set up the delivery mode for a message that shoul be sent. I have made something like this: T extMessage replyMessage = session.createTextMessage(); replyMessage.setText(contents); replyMessage.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT); replyMessage.setJMSCorrelationID(requestMessage .getJMSMessageID()); replyProducer.send(replyMessage); System.out.println("\tDeliveryMode: " + replyMessage.getJMSDeliveryMode()); but the latest code still print 2, meanig DeliveryMode.PERSISTENT. Also on the client that receives the message the same mode is received. I want the same thing for the client that the messages that shoul be delivered to the server( I have a P2P architecture) to have the same delivery mode. I have made something like this: requestMessage.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT); requestProducer.send(requestMessage); but when I'm printing out the PERSISTENT mode is printed. Thank you, Florin --------------------------------- All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine --0-1495804181-1160125918=:26188--