Return-Path: Delivered-To: apmail-incubator-general-archive@www.apache.org Received: (qmail 67228 invoked from network); 14 Aug 2006 22:30:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Aug 2006 22:30:19 -0000 Received: (qmail 51379 invoked by uid 500); 14 Aug 2006 22:30:17 -0000 Delivered-To: apmail-incubator-general-archive@incubator.apache.org Received: (qmail 50859 invoked by uid 500); 14 Aug 2006 22:30:15 -0000 Mailing-List: contact general-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@incubator.apache.org Delivered-To: mailing list general@incubator.apache.org Received: (qmail 50848 invoked by uid 99); 14 Aug 2006 22:30:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 15:30:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.112.202.2] (HELO mail.devtech.com) (66.112.202.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 15:30:14 -0700 Received: from localhost ([127.0.0.1]) by mail.devtech.com (JAMES SMTP Server 2.3.0rc2) with SMTP ID 699 for ; Mon, 14 Aug 2006 18:29:52 -0400 (EDT) From: "Noel J. Bergman" To: Subject: RE: Dynamic message selectors and message scheduling Date: Mon, 14 Aug 2006 18:29:48 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N James Strachan wrote: > Noel J. Bergman wrote: > > My particular use case involves selecting the next message in the > > destination whose scheduled time is less than or equal to now. If there > > were a "now" operation available in the query language, I wouldn't have to > > change the selector, but the expression would still have to be constantly > > reevaluated. And in that case, I'd want both pull and push behavior to be > > supported. > That should be pretty simple to add to the selector syntax via a NOW() > function (to avoid 'NOW' clashing with some property on the message). Yes, I meant as a function ("operation"). Sorry for the shorthand without the (). BTW where in the JMS Specification does it support custom functions for selectors? > Though the filter would have to be constantly re-evaluted as typically > the assumption is that a selector is true or false but doesn't change > its value over time The assumption is that a selector's value would not change for a given message so, as an optimization, one wouldn't have to reapply the selector to a message already in the destination. > > One alternative is writing a broker to handle scheduling, which means > > posting all messages intended to be rescheduled to the broker, which > > would post them back when the schedule time occurs, thus handling > > scheduling in a similar manner to how MQ handles subscriptions. > Yeah - I think handling the scheduled publish of messages is probably > a better idea as its more powerful and flexible And I can start with a purely JDBC-based implementation, which would satisfy my most pressing needs in a local clustering environment. As a side-effect, an additional near-term upside would be avoiding the need for XA, since there seems to be an outstanding issue of there not being properly working XA transaction manager available as Open Source. Eventually, though, I'd like XA across JMS, JDBC and Commons Transactions. --- Noel --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org For additional commands, e-mail: general-help@incubator.apache.org