Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF4F096A3 for ; Thu, 22 Dec 2011 21:05:06 +0000 (UTC) Received: (qmail 90503 invoked by uid 500); 22 Dec 2011 21:05:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 90478 invoked by uid 500); 22 Dec 2011 21:05:06 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 90433 invoked by uid 99); 22 Dec 2011 21:05:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 21:05:06 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of calvinkrishy@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 21:04:59 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rdpoc-0006vA-Oj for users@camel.apache.org; Thu, 22 Dec 2011 13:04:38 -0800 Date: Thu, 22 Dec 2011 13:04:38 -0800 (PST) From: krishy To: users@camel.apache.org Message-ID: <1324587878745-5095635.post@n5.nabble.com> Subject: ActiveMQ messages not being received MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org We use Camel to send and receive messages from ActiveMQ and observe that seemingly randomly our integration tests fail. I have not been able to observe any pattern and even with Camel turned up to TRACE level, see no exceptions/errors in the logs. Most test cases are a variation of the following: create route from jms topic (with no selector) -> bean create route from jms topic (with a selector) -> bean send a message (that would have been satisfied by the selector) sleep 5 seconds assert the beans received the message. What we observe is that the listeners are registered alright: [ main] JmsConsumer DEBUG Starting consumer: Consumer[activemq://topic:Assets?selector=] and [ main] JmsConsumer DEBUG Starting consumer: Consumer[activemq://topic:Assets?selector=eventType+IN+%28%27Create%27%29] The message is sent alright: [l) thread #18 - seda://enqueue] Configuration$CamelJmsTemplate TRACE Sent JMS message to: topic://Assets with message: ActiveMQBytesMessage {commandId = 0, responseRequired = false, messageId = ID:hudson-56463-1324586663618-0:4:3:1:1, originalDestination = null, originalTransactionId = null, producerId = null, destination = topic://Assets, transactionId = null, expiration = 0, timestamp = 1324586696947, arrival = 0, brokerInTime = 0, brokerOutTime = 0, correlationId = null, replyTo = null, persistent = false, type = null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = org.apache.activemq.util.ByteSequence@1da4d2c0, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = {source=WEB, eventType=Create}, readOnlyProperties = false, readOnlyBody = false, droppable = false} ActiveMQBytesMessage{ bytesOut = null, dataOut = null, dataIn = null } but it is not received by the listeners. The fact that the same tests pass once in a while for the same set of messages is very confusing. We have also tried adding a sleep between the time the message is done and the assertation is done to rule out any race conditions but still no luck; the random failures continue. We run the ActiveMQ instance for the tests using the activemq-tooling maven plugin. mvn activemq:run test Any clues/pointers greatly appreciated PS: Apologies if this does not appear to be Camel issue and but an ActiveMQ issue! -- View this message in context: http://camel.465427.n5.nabble.com/ActiveMQ-messages-not-being-received-tp5095635p5095635.html Sent from the Camel - Users mailing list archive at Nabble.com.