Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4B89D1DD for ; Tue, 17 Jul 2012 14:54:14 +0000 (UTC) Received: (qmail 77161 invoked by uid 500); 17 Jul 2012 14:54:14 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 77017 invoked by uid 500); 17 Jul 2012 14:54:12 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 76967 invoked by uid 99); 17 Jul 2012 14:54:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2012 14:54:10 +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 lightguard.jp@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2012 14:54:06 +0000 Received: by yenl13 with SMTP id l13so424054yen.6 for ; Tue, 17 Jul 2012 07:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=gpvl5lnWeiRVTOiTJiNIfRvM0+cJ4QhbvklBox2Og88=; b=Hpe7Jf9SdNdTq9nxTNbMGqGzDeDO+fmEgP3h1AvxBmjVUgFQOdRs0phisR+6u11KWQ 5bCJE6gWNEqUkCI28zogyKpvNzGzXL0AkKf9T9jpNUPR3DHafk6bwRgXTosM0RRTbs1/ p8CSS+MRw/9KsZhZXsPrW97w/v0GoM5enUWWVe4jzFQw4A6N8lOpiYg5+sXxheeLwuav KiOtglGF4c/9TiraxUPA8koGnhfoGaBheYWzLPuteFmjvhCeVUauXhy1YmqHa2p5WDrP PaIC6KkaVRp6J+UG5CZiOl8sGqTjwYel1EKx5S0O4wnE5KYz80y0q5+n4FHsle8JN4lD LaRw== Received: by 10.50.158.229 with SMTP id wx5mr1642658igb.23.1342536822770; Tue, 17 Jul 2012 07:53:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.37.243 with HTTP; Tue, 17 Jul 2012 07:53:21 -0700 (PDT) From: Jason Porter Date: Tue, 17 Jul 2012 08:53:21 -0600 Message-ID: Subject: Blocking issue in jpa / transaction module To: deltaspike-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=14dae934062b6b4db704c507b610 X-Virus-Checked: Checked by ClamAV on apache.org --14dae934062b6b4db704c507b610 Content-Type: text/plain; charset=UTF-8 I discovered yesterday an issue I would call a blocker for the v0.3-incubating release. In the JPA / Transaction module we have the interceptor binding in the API jar, the interceptor implementation in the impl jar. So far everything is good. We have the TransactionHelper class in the API jar which allows a Runnable to be executed with a transaction, done via the transaction interceptor. This is where we have the problem. The api jar now has a dependency on the impl jar if the TransactionHelper class is to be used. I ran across this problem in the one test that uses this helper class. Everything is fine inside TomEE and JBoss AS7 which I tested, however, in the embedded weld container due to multiple definitions of the interceptor (WEB-INF/beans.xml and META-INF/beans.xml). This happens because of class loading issues it seems. I believe we have a few solutions: 1) Move the TransactionHelper class into the impl jar requiring users to have a compile dependency on the impl jar 2) Move the interceptor implementation to the api jar (we'd have to change the interceptor definition in the beans.xml) and we have an implementation in the api jar 3) Create a one off deployment targeting the embedded weld container (and others if the same problem is found) I know doing little one offs isn't the way we always want to handle things, but this certainly seems like the simplest road ahead right now. Thoughts? -- Jason Porter http://lightguard-jp.blogspot.com http://twitter.com/lightguardjp Software Engineer Open Source Advocate Author of Seam Catch - Next Generation Java Exception Handling PGP key id: 926CCFF5 PGP key available at: keyserver.net, pgp.mit.edu --14dae934062b6b4db704c507b610--