Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 8301 invoked from network); 25 Aug 2007 20:45:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2007 20:45:04 -0000 Received: (qmail 57239 invoked by uid 500); 25 Aug 2007 20:45:00 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 57216 invoked by uid 500); 25 Aug 2007 20:45:00 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 57207 invoked by uid 99); 25 Aug 2007 20:45:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2007 13:45:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2007 20:45:03 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 908101A9832; Sat, 25 Aug 2007 13:44:43 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r569733 - /cayenne/sandbox/cayenne-jpa-tutorial/README.txt Date: Sat, 25 Aug 2007 20:44:43 -0000 To: commits@cayenne.apache.org From: aadamchik@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070825204443.908101A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: aadamchik Date: Sat Aug 25 13:44:42 2007 New Revision: 569733 URL: http://svn.apache.org/viewvc?rev=569733&view=rev Log: (empty) Modified: cayenne/sandbox/cayenne-jpa-tutorial/README.txt Modified: cayenne/sandbox/cayenne-jpa-tutorial/README.txt URL: http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-jpa-tutorial/README.txt?rev=569733&r1=569732&r2=569733&view=diff ============================================================================== --- cayenne/sandbox/cayenne-jpa-tutorial/README.txt (original) +++ cayenne/sandbox/cayenne-jpa-tutorial/README.txt Sat Aug 25 13:44:42 2007 @@ -1,6 +1,7 @@ RUNNING THE TUTORIAL: +===================== -1. Get needed jars +1. NEEDED JARS (note that tutorial project includes them already, so the list below is given for the reference) * cayenne-server.jar @@ -11,15 +12,21 @@ * asm-commons.jar * all Cayenne distro "third-party/" jars -2. Set desired Derby DB location in "persistence.xml" and "sql/derbydb.sql" files. +2. Import Tutorial project in Eclipse. -3. Create test Derby database, use Derby "ij" client tool (again, the example is tested on Derby 10.3.1.4): +3. Set desired Derby DB location in "persistence.xml" and "sql/derbydb.sql" files. -$ export DERBY_HOME=[path to derby] -$ export PATH=$DERBY_HOME/bin:$PATH -$ ij cayenne-jpa-tutorial/sql/derbydb.sql +4. Create test Derby database, use Derby "ij" client tool (again, the example is tested on Derby 10.3.1.4): -4. Run the tutorial from Eclipse. In the "Arguments" tab of the "Run" panel set the following VM argument -(edit for the proper agent jar location): + $ export DERBY_HOME=[path to derby] + $ export PATH=$DERBY_HOME/bin:$PATH + $ ij cayenne-jpa-tutorial/sql/derbydb.sql --javaagent:/path/to/cayenne-jpa-tutorial/lib/cayenne-agent-3.0-SNAPSHOT.jar \ No newline at end of file +5. Run the tutorial from Eclipse: + + * Main class is 'cayenne.jpa.tutorial.Main' + * In the "Arguments" tab of the "Run" panel set the following VM argument (edit for the proper agent jar location): + + -javaagent:/path/to/cayenne-jpa-tutorial/lib/cayenne-agent-3.0-SNAPSHOT.jar + + \ No newline at end of file