Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 27536 invoked from network); 13 Jan 2011 15:54:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2011 15:54:11 -0000 Received: (qmail 34608 invoked by uid 500); 13 Jan 2011 15:54:10 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 34424 invoked by uid 500); 13 Jan 2011 15:54:07 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 34416 invoked by uid 500); 13 Jan 2011 15:54:06 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 34413 invoked by uid 99); 13 Jan 2011 15:54:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 15:54:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 15:54:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0DFrjmV025244 for ; Thu, 13 Jan 2011 15:53:45 GMT Message-ID: <10428212.344271294934025154.JavaMail.jira@thor> Date: Thu, 13 Jan 2011 10:53:45 -0500 (EST) From: =?utf-8?Q?Jo=C3=A3o_Loureiro_=28JIRA=29?= To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-3540) Jt400DataQueueConsumer incorrectly implements timeout semantics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jt400DataQueueConsumer incorrectly implements timeout semantics --------------------------------------------------------------- Key: CAMEL-3540 URL: https://issues.apache.org/jira/browse/CAMEL-3540 Project: Camel Issue Type: Bug Affects Versions: 2.5.0 Reporter: Jo=C3=A3o Loureiro Priority: Minor Jt400DataQueueConsumer implementation of receive(long) passes the timeout a= rgument directly to com.ibm.as400.access.DataQueue.read(int), not performin= g unit conversion. However, Jt400DataQueueConsumer.receive(long) accepts mi= lliseconds, whereas DataQueue.read(int) accepts seconds as the time unit. Also, invoking Jt400DataQueueConsumer.receive() results in a call to DataQu= eue.read(), which is not a blocking call; on the contrary, it will not wait= for entries. Code snippet below. {code:title=3DJt400DataQueueConsumer.java|borderStyle=3Dsolid} DataQueue queue =3D endpoint.getDataQueue(); try { DataQueueEntry entry; if (timeout >=3D 0) { entry =3D queue.read((int)timeout); } else { entry =3D queue.read(); } {code} --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.