Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D60A17B01 for ; Wed, 25 Feb 2015 14:18:19 +0000 (UTC) Received: (qmail 43236 invoked by uid 500); 25 Feb 2015 14:18:19 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 43202 invoked by uid 500); 25 Feb 2015 14:18:19 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 43191 invoked by uid 99); 25 Feb 2015 14:18:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2015 14:18:18 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hal.hildebrand@me.com designates 17.158.236.236 as permitted sender) Received: from [17.158.236.236] (HELO nk11p04mm-asmtp001.mac.com) (17.158.236.236) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2015 14:17:52 +0000 Received: from [10.0.1.57] (c-69-181-28-87.hsd1.ca.comcast.net [69.181.28.87]) by nk11p04mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NKB00K11ZK4KA00@nk11p04mm-asmtp001.mac.com> for users@openjpa.apache.org; Wed, 25 Feb 2015 14:14:29 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-02-25_05:2015-02-25,2015-02-25,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1502250146 Content-type: multipart/alternative; boundary=Apple-Mail-46FE6490-6481-450D-B294-8B700224114B MIME-version: 1.0 (1.0) Subject: Re: Lifecycle events? From: Hal Hildebrand X-Mailer: iPad Mail (12B466) In-reply-to: <44F7B858-3620-4BF8-B508-2B37F52FB72F@me.com> Date: Wed, 25 Feb 2015 06:14:31 -0800 Cc: "users@openjpa.apache.org" Content-transfer-encoding: 7bit Message-id: References: <44F7B858-3620-4BF8-B508-2B37F52FB72F@me.com> To: Hal Hildebrand X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-46FE6490-6481-450D-B294-8B700224114B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable So, this is just a dead parrot? I couldn't find anything through web search= es. Can I get a read as to whether this is supposed to work or even a code s= ample? Thanks.=20 > On Feb 22, 2015, at 1:29 PM, Hal Hildebrand wrote:= >=20 > So, I=E2=80=99m trying to use the lifecycle events on the OpenJPAEntityMan= agerSPI. I=E2=80=99ve created a class which implements PersistListener, Upd= ateListener, DeleteListener. I=E2=80=99ve registered an instance of this cl= ass as a lifecycle listener: >=20 > OpenJPAEntityManagerSPI openJpaEm =3D em.unwrap(OpenJPAEntityManagerSPI.cl= ass); > openJpaEm.addLifecycleListener(this); >=20 > This does not seem to do anything at all. I=E2=80=99ve got printlns in ev= ery event and I get nothing. I have registered the txn listener successfull= y, and that works great. >=20 > Is there something I=E2=80=99m missing here? >=20 > Any help appreciated. >=20 > Thanks, >=20 > -Hal --Apple-Mail-46FE6490-6481-450D-B294-8B700224114B--