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 C1C1911580 for ; Fri, 5 Sep 2014 16:09:00 +0000 (UTC) Received: (qmail 77153 invoked by uid 500); 5 Sep 2014 16:09:00 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 77104 invoked by uid 500); 5 Sep 2014 16:09:00 -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 77092 invoked by uid 99); 5 Sep 2014 16:09:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2014 16:09:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.mk.green@gmail.com designates 209.85.217.170 as permitted sender) Received: from [209.85.217.170] (HELO mail-lb0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2014 16:08:54 +0000 Received: by mail-lb0-f170.google.com with SMTP id w7so13837980lbi.1 for ; Fri, 05 Sep 2014 09:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bv01CXCMOL5iGnJIBIch+Ms3q3Lh08LL2j6iSSBXv4c=; b=oOIs5zarx7WR64wtxlqAQ/JDUeiKWFfndwSo7pFWkeRHQ8fKUHqE2EQCKUjXt4ewxi zlMtUIoeFZzoE/S+W9rHTU4H6DLGRnlmwDm0Uyyb8NZYsLFjw6h1dCS4B20+YR+yh7CK H7qnxpf0EGdUvtb2KOXfVeDtkVD8iNI+zNqxE3hf+4/xwRTJqx5XN33Z2+ewmhukNkzG g4t+M49N1twcbsfRhD8OgfwH7/bAhFy9rz6P10GwSiRKdFb3TLLfs32hlAfau8sLiBQr SS3NrpQLNp6LUyfhMux2ATQbzLc6YqL69DLo/jXO9j82Oenkw3ySeUys5vXOzI+NxX2P M+lg== MIME-Version: 1.0 X-Received: by 10.152.10.130 with SMTP id i2mr13165361lab.65.1409933312997; Fri, 05 Sep 2014 09:08:32 -0700 (PDT) Received: by 10.25.42.193 with HTTP; Fri, 5 Sep 2014 09:08:32 -0700 (PDT) Date: Fri, 5 Sep 2014 17:08:32 +0100 Message-ID: Subject: Camel + Spring + JpaTransactionManager = Hung on SELECT From: James Green To: users Content-Type: multipart/alternative; boundary=001a11332bac473cfb050253ae97 X-Virus-Checked: Checked by ClamAV on apache.org --001a11332bac473cfb050253ae97 Content-Type: text/plain; charset=UTF-8 We have a maven project that bundles Camel and Spring. The trouble is a processor receives a message and uses an EntityManager to perform a database query which hangs completely until a 20s timeout kicks in during routing. The hang is during an integration test against an in-memory database with a single record. We can do the same query within the test itself within a few milliseconds before calling the camel code which hangs. We also built a separate integration test that executes the processor directly (without Camel) and this works fine. So it's only when Camel is used does the route hang. Debugging switched on, we see HIbernate log the SELECT query, then nothing before the Camel timeout gets logged. Unfortunately at this point we're totally baffled. Any ideas gratefully received. Versions: Camel: 2.13.2 Spring: 3.2.10-RELEASE Spring-data-jpa: 1.6.2 spring-osgi-core: 1.0.2 Hibernate: 3.6.10 hibernate-jpa-2.0-api 1.0.1-FINAL James --001a11332bac473cfb050253ae97--