From dev-return-16502-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Fri May 21 12:47:31 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 34893 invoked from network); 21 May 2010 12:47:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 May 2010 12:47:30 -0000 Received: (qmail 44535 invoked by uid 500); 21 May 2010 12:47:30 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 44485 invoked by uid 500); 21 May 2010 12:47:29 -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 44477 invoked by uid 99); 21 May 2010 12:47:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 May 2010 12:47:29 +0000 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of webautomator2@gmail.com designates 74.125.82.46 as permitted sender) Received: from [74.125.82.46] (HELO mail-ww0-f46.google.com) (74.125.82.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 May 2010 12:47:23 +0000 Received: by wwi18 with SMTP id 18so639183wwi.33 for ; Fri, 21 May 2010 05:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=FyfXqVEWeP8w1NGaJXhBMOSuHDrxvgOGwV9TPIfQHVA=; b=R4tcPhIBp+3khITZg7nbUZUcswpyWz04lxqPkctTS2wW/UBvmP9FLr7oN48fj01BDX 46g/4NfjFhQD9+Nr6L3ZTGzcR6f548MFiCp3xEjKj/xqN1UT0zVy9QtDOR+NPJZbWYR7 vvl2WUQzNtZpn7APbdqCu5eM6QpgIxovnXiCc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=H42ct9gZj6n9Oy+wgzuuQ6QygXw6h21f7re7HUxJGM+toFboNrKfOaLSFJs2Yeyeq1 TOkryZ8rVAgLGrkxIYNL/uuYFoH9G1h0T5LF99Gu1ejS1qCdUIC6pMibMAxRNAf44LZB p4FcTKmLDUbKvnmtDjhA7drb8NxlEbtUaNyo4= MIME-Version: 1.0 Received: by 10.216.88.1 with SMTP id z1mr801590wee.178.1274446021457; Fri, 21 May 2010 05:47:01 -0700 (PDT) Received: by 10.216.220.200 with HTTP; Fri, 21 May 2010 05:47:01 -0700 (PDT) In-Reply-To: References: Date: Fri, 21 May 2010 15:47:01 +0300 Message-ID: Subject: Re: persistence.xml properties defined From: Web developer To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=0016e6dab6d764f97304871a1626 --0016e6dab6d764f97304871a1626 Content-Type: text/plain; charset=ISO-8859-1 I am passing that parameters threw JVM arguments: -DConnectionDriverName=org.hsqldb.jdbc.JDBCDriver -DConnectionURL=jdbc:hsqldb:file:/tmp/persist_bacend -DDynamicEnhancementAgent=false -DRuntimeUnenhancedClasses=unsupported 2010/5/20 Albert Lee > Shouldn't you be using "openjpa." prefix for the property names? e.g. > openjpa.ConnectionDriverName=..... > > Albert Lee. > > On Mon, May 17, 2010 at 10:20 AM, Web developer >wrote: > > > Here what I use: > > > > EntityManagerFactory emf = > > Persistence.createEntityManagerFactory("embeddables", > > System.getProperties()); > > EntityManager em = emf.createEntityManager(); > > init(em); > > runQueries(em); > > > > runner arguments: > > > > -DConnectionDriverName=org.hsqldb.jdbc.JDBCDriver > > -DConnectionURL=jdbc:hsqldb:file:/tmp/persist_bacend > > -DDynamicEnhancementAgent=false -DRuntimeUnenhancedClasses=unsupported > > > > My persistence.xml: > > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > version="1.0"> > > > > > > > > > > > > > > hellojpa.Message > > > > > > > > > > > value="org.apache.openjpa.jdbc.kernel.ClassTableJDBCSeq"/> > > > > > > > > transaction-type="RESOURCE_LOCAL"> > > > > > org.apache.openjpa.persistence.PersistenceProviderImpl > > Address > > ContactInfo > > Phone > > User > > > > > > > > John > > > > 2010/5/17 Jeremy Bauer > > > > > John, > > > > > > Do you specify the persistence unit name when you create the entity > > manager > > > factory? If not, you may be picking up the default persistence unit > > which > > > likely has those properties defined. If you do specify the PU name > could > > > you post your persistence.xml and the version of OpenJPA you are using? > > > > > > -Jeremy > > > > > > On Sat, May 15, 2010 at 2:35 AM, Web developer < > webautomator2@gmail.com > > > >wrote: > > > > > > > Hi. My persistence.xml contained ConnectionDriverName and > ConnectionURL > > > > properties defined for the unit that was not in use. But even when I > > > added > > > > tags into config for another unit - the effect is the same. John > > > > > > > > > > > > > -- > Albert Lee. > --0016e6dab6d764f97304871a1626--