Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 58999 invoked from network); 4 Apr 2011 18:01:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 18:01:10 -0000 Received: (qmail 96887 invoked by uid 500); 4 Apr 2011 18:01:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 96864 invoked by uid 500); 4 Apr 2011 18:01:09 -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 96855 invoked by uid 99); 4 Apr 2011 18:01:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 18:01:09 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 18:01:03 +0000 Received: by qwf6 with SMTP id 6so4376674qwf.2 for ; Mon, 04 Apr 2011 11:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=wgQiGItmt2cf8ZYcVMxN2rCJa0m5pa1dXn22OCvgAWw=; b=TNt1UZwGFJhRbZUhhiiJdj5Wmml2sIIXJGPFqc+fhVkc9lKXwW84gkdIOxXcfzi4Pd XGQWZcy9UOsbcddhPM4UHiEAQHEYcQJeSe2mszgBch9lmEYgk5VSqEmeJr//JEG6wJR2 sA5kqr/uzJqLOEj7yJChvKw1H+/LJo3cv4z80= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=BfnDNHiNtn2Dus4EqORyxuEUWdsfHzX+ObFJX7GNl0msRPQkuwY4JQwwOtZY1ANBZ0 SGqIuTQ8Za4tlzzEvCnx4ABOEYwQr0xpZdF0DsEYivOyZRp/iYnTTzoU0U5Ga/EOkX+q chsYtSDU/UnU6/a/uNWZh+fqv5xq9gsMymDeU= MIME-Version: 1.0 Received: by 10.229.40.134 with SMTP id k6mr5841700qce.242.1301940042349; Mon, 04 Apr 2011 11:00:42 -0700 (PDT) Received: by 10.229.104.209 with HTTP; Mon, 4 Apr 2011 11:00:42 -0700 (PDT) In-Reply-To: References: <1300488137874-3388635.post@n4.nabble.com> <1300827317566-3397734.post@n4.nabble.com> <1301004692891-3403957.post@n4.nabble.com> <1301350705390-3413235.post@n4.nabble.com> Date: Mon, 4 Apr 2011 19:00:42 +0100 Message-ID: Subject: Re: network of broker stop forwarding messages without advisorySupport enabled From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Anubhava, have a look at https://issues.apache.org/jira/browse/AMQ-3253 and the associated test case. You can try the additional config with trunk or tonight's snapshot. I will allow temp destinations to propagate a network and allow the gc of destinations that have just network consumers, which will work for your 'temp' non temporary destinations. On 30 March 2011 19:00, Gary Tully wrote: > There is no easy answer with the current code. I am working on > building in support for temp destinations across a network with no > advisories, still some issues with ownership/lifecycle at the moment. > Will let you know when I have something you can try out. > > In the short term, to delete your real destinations, if you can build > your own broker from source, you could add a timeout > 0 =A0to the call > to removeDestination in > org.apache.activemq.broker.region.RegionBroker#purgeInactiveDestinations > > On 28 March 2011 23:18, anuhbava wrote: >> Hi Gary, >> >> Thanks for pointing the source code to me, its been a great help to try = & >> understand how AMQ code is behaving for these scenarios. >> >> Here is what I found so far: >> 1. connectionFactory.setClientIDPrefix("ID:ReplyDest.host") and >> connectionFactory.setClientID("ID:ReplyDest.host") calls are completely >> ignored while creating a new temporary queue name. >> 2. session.createQueue("ID:ReplyDest.host-client-queue-" + new Date()); >> throws exception as I mentioned earlier as well. >> 3. Only hack I could find to alter the naming convention was this call: >> ((ActiveMQConnection) >> connection).getConnectionInfo().getConnectionId().setValue("ID:ReplyDest= ."); >> 4. Using above trick will alter the naming convention of temporary >> destinations as temp-queue://ID:ReplyDest.12334535345.1 >> 5. However when I added this in activemq.xml in >> staticallyIncludedDestinations tag: >> =A0 =A0"/> >> =A0 =A0Brokers ignored this directive for temporary destinations inclusi= ons. It >> seems staticallyIncludedDestinations only works for named queues and top= ics >> but not for temp destinations. >> 6. Now if I create regular destinations using >> session.createTopic("ReplyDest.client-topic" + new Date()); and have >> corresponding staticallyIncludedDestinations inclusions then my >> request/responses flow without problems. >> 7. As per your very nice suggestion I have now included >> =A0" advisoryForConsumed=3D"false" advisoryForDelivery=3D"false" >> gcInactiveDestinations=3D"true" inactiveTimoutBeforeGC=3D"30000"/> >> >> in my destinationPolicy tag. However what I noticed is that even if prod= ucer >> and consumer are killed but these newly created named topics are NOT del= eted >> until all but one the broker are shutdown. Which is somewhat unexpected >> behavior and it may not work for us since at no time we are going to >> shutdown our AMQ brokers in production, even though producer/consumers c= an >> be very dynamic and can start/stop many times. Do you have any other >> suggestion for my case, one that can cleanup/remove these (temporary for= my >> use case but not really temporary for AMQ) destinations without stopping= any >> brokers? >> >> many thanks for your help so far, >> Anubhava >> >> >> >> >> -- >> View this message in context: http://activemq.2283324.n4.nabble.com/netw= ork-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-tp33= 86261p3413235.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > > > -- > http://blog.garytully.com > http://fusesource.com > --=20 http://blog.garytully.com http://fusesource.com