Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 20820 invoked from network); 13 Feb 2007 20:15:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2007 20:15:20 -0000 Received: (qmail 91181 invoked by uid 500); 13 Feb 2007 20:15:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 91166 invoked by uid 500); 13 Feb 2007 20:15:27 -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 91152 invoked by uid 99); 13 Feb 2007 20:15:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 12:15:27 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of sukoneru@cisco.com designates 171.71.176.117 as permitted sender) Received: from [171.71.176.117] (HELO sj-iport-6.cisco.com) (171.71.176.117) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 12:15:15 -0800 Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-6.cisco.com with ESMTP; 13 Feb 2007 12:14:54 -0800 X-IronPort-AV: i="4.14,163,1170662400"; d="scan'208,217"; a="112258363:sNHT98605044" Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id l1DKEs8r016863 for ; Tue, 13 Feb 2007 12:14:54 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l1DKEsDk006140 for ; Tue, 13 Feb 2007 12:14:54 -0800 (PST) Received: from xmb-sjc-21a.amer.cisco.com ([171.70.151.152]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Feb 2007 12:14:48 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C74FAB.9C1C82D5" Subject: frequency at which the message is re sent Date: Tue, 13 Feb 2007 12:14:47 -0800 Message-ID: <5BD9FA70F5EDAC43AB816A5FDE30F6AC03A0FD71@xmb-sjc-21a.amer.cisco.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: frequency at which the message is re sent Thread-Index: AcdPq5t2HgMMdx7kSnaAveupW1UdLg== From: "Suchitha Koneru \(sukoneru\)" To: X-OriginalArrivalTime: 13 Feb 2007 20:14:48.0237 (UTC) FILETIME=[9C3995D0:01C74FAB] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=9250; t=1171397694; x=1172261694; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=sukoneru@cisco.com; z=From:=20=22Suchitha=20Koneru=20\(sukoneru\)=22=20 |Subject:=20frequency=20at=20which=20the=20message=20is=20re=20sent |Sender:=20; bh=tcJe+kbiPOHK/3uXm22fz995h6+BS66SczCc74nSH1I=; b=rTzi5ztM9WM/1IRdQ7q2dGdIxRj97GtVg33hAlew/YYdus8UOn9uZ+ZS5GsY57c8O+BMbWe1 fihd6RMh9Vbad2w/gBTao6XIywVltYKIFt4ro5jx8ivT17Haj0NMZHHY; Authentication-Results: sj-dkim-3; header.From=sukoneru@cisco.com; dkim=pass ( sig from cisco.com/sjdkim3002 verified; ); X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C74FAB.9C1C82D5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello ActiveMQ Users,=20 I am using durable topic subscriptions . The session used is in auto acknowledge mode. =20 // code segment for session=20 HerbieSession =3D (ActiveMQSession) HConn.createSession(false, Session.AUTO_ACKNOWLEDGE); =20 Fot the message publishing , the time to live , is set as 5 minutes . The following is the code segment try{ pub =3D Sess.createPublisher(topic); if(pub !=3D null){ pub.setTimeToLive(300000); pub.setDeliveryMode(DeliveryMode.NON_PERSISTENT); tc.start(); }else{ System.out.println("JMS Event sender , publisher is null"); } }catch(Exception e){ e.printStackTrace(); } =20 This is what I understood from durable subscriptions. Please correct me if Iam wrong There will be a mesage queue maintained for every durable subscriber (identified uniquely by Client ID and Subscription name). This queue will be monitored by a thread , which would remove messages from it , once they expire, and which would also=20 send the messages to the durable subscribers as and when they become available. Consider a scenario, where in ,when the message is published , and the durable subscriber is not active at the moment, to receive the messages . The durable subscriber becomes active later , the thread which monitors the durable subscriber queue , send the messages to the subscriber . Since the ActiveMq Session is configured in auto acknowledge mode , the thread waits for acknowledgement from the subscriber, just in case the subscriber does not send the acknowledgement , will this thread keep sending the message to the durable subscriber periodically until the message expires after 5 minutes ? if this is the case , what is the frequency at which it re sends the message to the durable subscriber ? Please let me know,=20 thank you, Suchitha. =20 =20 =20 =20 =20 ------_=_NextPart_001_01C74FAB.9C1C82D5--