Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 35348 invoked from network); 10 Jun 2009 14:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jun 2009 14:56:20 -0000 Received: (qmail 8383 invoked by uid 500); 10 Jun 2009 14:56:31 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 8355 invoked by uid 500); 10 Jun 2009 14:56:31 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 8345 invoked by uid 99); 10 Jun 2009 14:56:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 14:56:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 14:56:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 56F85234C004 for ; Wed, 10 Jun 2009 07:56:07 -0700 (PDT) Message-ID: <1078870971.1244645767345.JavaMail.jira@brutus> Date: Wed, 10 Jun 2009 07:56:07 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-952) Utilize Sun JDK's Attach API to dynamically load the OpenJPA enhancer agent In-Reply-To: <974566385.1236112856292.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick updated OPENJPA-952: --------------------------------- Affects Version/s: (was: 2.0.0-M2) 2.0.0 Fix Version/s: (was: 2.0.0-M2) 2.0.0 > Utilize Sun JDK's Attach API to dynamically load the OpenJPA enhancer agent > --------------------------------------------------------------------------- > > Key: OPENJPA-952 > URL: https://issues.apache.org/jira/browse/OPENJPA-952 > Project: OpenJPA > Issue Type: Improvement > Components: kernel > Affects Versions: 2.0.0 > Environment: Sun 1.6 JDK. > Note: The Attach API is ONLY a part of the JDK, not the SDK. > Reporter: Rick Curtis > Assignee: Michael Dick > Fix For: 2.0.0 > > Attachments: OPENJPA-952.patch, OPENJPA-952.patch, OPENJPA-952.patch > > Original Estimate: 0h > Remaining Estimate: 0h > > When running in a JSE environment, OpenJPA could use the Attach API to dynamically load the enhancer agent at runtime. Dynamically loading the enhancer means that an OpenJPA developer doesn't need to configure a -javaagent. Doing this would dramatically improve the out of box performance, and also improve the ease of use. > This improvement has the following caveats: > 1.) This API is ONLY a part of the 1.6 JDK. > 2.) This API is supported by only the Sun JDK. > 3.) If the agent is loaded from the earliest OpenJPA code, the agent will be laoded when creating an EntityManager in the EntityManagerFactoryImpl. If an Entity class is loaded by the JVM before the enhancer agent is loaded, that class' byte code will not be enhanced. > Attach API - http://java.sun.com/javase/6/docs/technotes/guides/attach/index.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.