camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Loureiro (JIRA) <>
Subject [jira] Created: (CAMEL-3540) Jt400DataQueueConsumer incorrectly implements timeout semantics
Date Thu, 13 Jan 2011 15:53:45 GMT
Jt400DataQueueConsumer incorrectly implements timeout semantics

                 Key: CAMEL-3540
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.5.0
            Reporter: João Loureiro
            Priority: Minor

Jt400DataQueueConsumer implementation of receive(long) passes the timeout argument directly
to, not performing unit conversion. However, Jt400DataQueueConsumer.receive(long)
accepts milliseconds, whereas accepts seconds as the time unit.

Also, invoking Jt400DataQueueConsumer.receive() results in a call to, which
is not a blocking call; on the contrary, it will not wait for entries.

Code snippet below.

        DataQueue queue = endpoint.getDataQueue();
        try {
            DataQueueEntry entry;
            if (timeout >= 0) {
                entry =;
            } else {
                entry =;

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message