Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 29621 invoked from network); 16 Dec 2009 12:30:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Dec 2009 12:30:40 -0000 Received: (qmail 3648 invoked by uid 500); 16 Dec 2009 12:30:40 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 3601 invoked by uid 500); 16 Dec 2009 12:30:40 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 3591 invoked by uid 99); 16 Dec 2009 12:30:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Dec 2009 12:30:40 +0000 X-ASF-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msa@schor.com designates 64.5.52.13 as permitted sender) Received: from [64.5.52.13] (HELO gateway10.websitewelcome.com) (64.5.52.13) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 16 Dec 2009 12:30:37 +0000 Received: (qmail 14000 invoked from network); 16 Dec 2009 12:44:50 -0000 Received: from gator74.hostgator.com (67.18.27.130) by gateway10.websitewelcome.com with SMTP; 16 Dec 2009 12:44:50 -0000 Received: from ool-44c6c63b.dyn.optonline.net ([68.198.198.59]:15002 helo=[192.168.1.100]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NKt1D-0006xV-Jw for uima-user@incubator.apache.org; Wed, 16 Dec 2009 06:30:15 -0600 Message-ID: <4B28D2DB.4080507@schor.com> Date: Wed, 16 Dec 2009 07:30:19 -0500 From: Marshall Schor User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: Error on getMeta call to remote service References: <4B28B036.7010700@ilsp.gr> In-Reply-To: <4B28B036.7010700@ilsp.gr> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com Prokopis Prokopidis wrote: >> On Tue, Dec 15, 2009 at 3:52 PM, Prokopis Prokopidis >> wrote: >> >> > If it's any help, when calling the service from the >> > machine on which it has been deployed, or when reversing >> > the service-client roles between the two machines, >> > everything works as in the README file. >> >> Hmmm, smells like a clock synchronization problem. In order to avoid >> undeliverable messages building up on a broker, timeout settings >> are used to create time-to-live properties in the JMS messages. >> ActiveMQ implements time-to-live based on the client and server >> machine clocks. >> >> Eddie > > Thank you! Following your advice and after synchronizing the clocks on > both machines (via ntpd) I managed to call the service as expected. > > Since I am no ActiveMQ expert, I'm now left wondering whether there is > a way to ensure that similar problems do not come up if a real-life > service is accessed by clients with unsynchronized clocks (on which > clients, of course, I will not be able to synchronize the clock). Yes, this is a known issue with various versions of ActiveMQ. You can find these issues via searching the web with keywords like: ActiveMQ clock sync synchronize time live > > Is this an issue which can be resolved in the client or server side > code and in the example of the AS distribution as well? Should I > create an issue in JIRA? I'm not the expert here. However, there was a mention of some kind of work-around, on this Jira: https://issues.apache.org/activemq/browse/AMQ-975 where a user said: In my case I don't have the machines synchronized, because producers, consumers and brokers ... run in different countries and are administrated by different people. and the response was: You should set the timestamp on messages on your broker by using the TimeStampBrokerPlugin - http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/util/TimeStampingBrokerPlugin.html^ see http://activemq.apache.org/interceptors.html^ for info on how to set a broker interceptor The api says: A Broker interceptor which updates a JMS Client's timestamp on the message with a broker timestamp. Useful when the clocks on client machines are known to not be correct and you can only trust the time set on the broker machines. Enabling this plugin will break JMS compliance since the timestamp that the producer sees on the messages after as send() will be different from the timestamp the consumer will observe when he receives the message. This plugin is not enabled in the default ActiveMQ configuration. [ Show ยป ] Rob Davies added a comment - 23/May/09 02:00 AM You should set the timestamp on messages on your broker by using the TimeStampBrokerPlugin - http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/util/TimeStampingBrokerPlugin.html^ see http://activemq.apache.org/interceptors.html^ for info on how to set a broker interceptor Hope this helps... -Marshall > > Best, > > Prokopis > > >