Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 92751 invoked from network); 1 Feb 2007 19:49:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2007 19:49:49 -0000 Received: (qmail 17834 invoked by uid 500); 1 Feb 2007 19:49:51 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 17804 invoked by uid 500); 1 Feb 2007 19:49:51 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 17788 invoked by uid 99); 1 Feb 2007 19:49:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 11:49:51 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.240] (HELO smtp107.plus.mail.mud.yahoo.com) (68.142.206.240) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Feb 2007 11:49:41 -0800 Received: (qmail 72162 invoked from network); 1 Feb 2007 19:49:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:From:Subject:Date:To:X-Mailer; b=ZJrC3cBWtGO8I0V5KiIIBFZBv/+uiaUSlCEhlS7qgHNcBbFShLjKXVRVSTuTebSc2eyH06gYy/EPASz3QNpKL1uhOnRUxIROWUgzDdmXeZWheRuOZmrpT1YZUGjAaKv+O84hMyeFq6o/RzEWiebkbzCOswWex3IiStn9Zvj0j4g= ; Received: from unknown (HELO ?10.11.55.8?) (david_jencks@63.105.20.225 with plain) by smtp107.plus.mail.mud.yahoo.com with SMTP; 1 Feb 2007 19:49:18 -0000 X-YMail-OSG: XsLYyDMVM1nxnLRAkIhATSLP5PRbv5LcbKT5oLhUDH5lRJEFbbY3UtarBARX1EafZFb2desvmzjYYFPwjl9HiRIsFbX8ZSwDzWgbJMiL0Iz8kS36SfPmN6GFbPqepshJdUJddYtkwZoZmNWIIkkjhvVvyAvcTR53 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <004a01c74631$948aba90$0500a8c0@burns> References: <004a01c74631$948aba90$0500a8c0@burns> Content-Type: multipart/alternative; boundary=Apple-Mail-25-926109044 Message-Id: <16AD4568-B968-446E-A53F-C1D47DEAA3BC@yahoo.com> From: David Jencks Subject: Re: AW: using OpenJPA in EJB2.1 application (was: ejb2.1 to Geronimo2.0 migration strategy) Date: Thu, 1 Feb 2007 11:49:13 -0800 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-25-926109044 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed On Feb 1, 2007, at 10:48 AM, Hans J. Prueller wrote: > david, > > > > thank you for your comments. > > > > please note: our problem is that we have to migrate a project =20 > consisting of about 70 CMP/CMR=92ed entity beans (ejb2.1). > > it will be impossible for us to migrate the whole app at once from =20 > ejb2.1 to openJPA or something else. so what my plan > > is, is to continue running the application within our current =20 > ejb2.1 container and perform a step-by-step migration of the > > ejb2.1 entity beans from ejb2.1 to openJPA =96 still running within =20= > our ejb2.1 container. > > > > as soon as all =93old=94 entity beans are migrated to openJPA we then =20= > could easily switch the whole app to Geronimo. Sorry, I forgot you are trying to run your app in a _different_ =20 ejb2.1 container :-) You should still be able to specify the mapping in a mapping.xml. =20 However I suspect if you can convince the other app server to run =20 under jdk 1.5 openjpa will be able to deal with annotations just as =20 it does in geronimo. I think the major problem you are likely to run into is that unless =20 there's container managed persitence contexts your transaction =20 behavior is going to be difficult to control. thanks david jencks > > > Hans > > > > Von: David Jencks [mailto:david_jencks@yahoo.com] > Gesendet: Donnerstag, 01. Februar 2007 18:29 > An: user@geronimo.apache.org > Betreff: Re: using OpenJPA in EJB2.1 application (was: ejb2.1 to =20 > Geronimo2.0 migration strategy) > > > > > > On Feb 1, 2007, at 7:41 AM, Hans J. Prueller wrote: > > > > > Hi together, > > > > I decided that it would be a valuable way to migrate existing =20 > CMP2.1 EJBs to OpenJPA, as this should also work > > OUTSIDE a Java EE 5 (and therefore inside EJB2.1) container. The =20 > problem I see is that I have to provide the OpenJPA > > mappings as Java5 annotations, and EJB2.1 projects are bound to =20 > Java 1.4 =96 without having annotations. > > run geronimo under jdk 1.5. This will work unless you are using =20 > corba. The almost released 1.2 might work if you are using corba. > > > > > Is there a way of providing the mapping via XML-descriptor too? > > > > yes, as per jpa spec. > > > Does anybody see other possible failures when running OpenJPA =20 > within a Java EE 1.4 container? > > > > I'm not sure why you don't want to use annotations. You should use =20 > the geronimo 1.2 not-quite-released version which includes jpa and =20 > in particular openjpa support. I converted the daytrader =20 > performance test app to use jpa and it works fine. In particular =20 > you can use container managed entity managers/persistence contexts =20 > rather than app managed ones. You might like to take a look at =20 > daytrader trunk, it has all the annotations and a jpa plan. You do =20= > need to run geronimo under jdk 1.5 for this to work. > > > > svn co https://svn.apache.org/repos/asf/geronimo/daytrader/trunk =20 > daytrader > > > > thanks > > david jencks > > > > > > > > > > > regards, > Hans > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > virtually hanzz... > > > > http://hanzz.zapto.org (personal) > http://www.cse.dmu.ac.uk/~hansp (research) > > > > > > > > > --Apple-Mail-25-926109044 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=WINDOWS-1252
On Feb 1, 2007, at = 10:48 AM, Hans J. Prueller wrote:

david,

=A0

thank you for your comments.

=A0

please note: our problem is that we have = to migrate a project consisting of about 70 CMP/CMR=92ed entity beans = (ejb2.1).

it will be impossible for us to migrate = the whole app at once from ejb2.1 to openJPA or something else. so what = my plan

is, is to continue running the = application within our current ejb2.1 container and perform a = step-by-step migration of the

ejb2.1 entity beans from ejb2.1 to = openJPA =96 still running within our ejb2.1 container.

=A0

as soon as all =93old=94 entity beans = are migrated to openJPA we then could easily switch the whole app to = Geronimo.


Sorry, I forgot you are trying = to run your app in a _different_ ejb2.1 container :-)

You should still be able to = specify the mapping in a mapping.xml.=A0 However I suspect if you can = convince the other app server to run under jdk 1.5 openjpa will be able = to deal with annotations just as it does in geronimo.

I think the major problem = you are likely to run into is that unless there's container managed = persitence contexts your transaction behavior is going to be difficult = to control.

thanks
david = jencks

=A0

Hans=A0


David Jencks [mailto:david_jencks@yahoo.com] =
Donnerstag, 01. = Februar 2007 18:29
user@geronimo.apache.org
Re: using OpenJPA = in EJB2.1 application (was: ejb2.1 to Geronimo2.0 migration = strategy)

=A0

=A0

On Feb 1, 2007, at 7:41 AM, Hans J. Prueller = wrote:



Hi together,

=A0

I decided that it would be a valuable = way to migrate existing CMP2.1 EJBs to OpenJPA, as this should also = workOUTSIDE a Java EE 5 (and therefore = inside EJB2.1) container. The problem I see is that I have to provide = the OpenJPAmappings as Java5 annotations, and = EJB2.1 projects are bound to Java 1.4 =96 without having = annotations.run geronimo = under jdk 1.5.=A0 This will work unless you are using corba.=A0 The = almost released 1.2 might work if you are using corba.

=A0

Is there a way of providing the mapping = via XML-descriptor too?

=A0

yes, as per jpa spec.

Does anybody see other possible failures when running = OpenJPA within a Java EE 1.4 = container?=A0

I'm not sure why you don't want to use = annotations. You should use the geronimo 1.2 not-quite-released version = which includes jpa and in particular openjpa support.=A0 I converted the = daytrader performance test app to use jpa and it works fine.=A0 In = particular you can use container managed entity managers/persistence = contexts rather than app managed ones.=A0 You might like to take a look = at daytrader trunk, it has all the annotations and a jpa plan.=A0 You do = need to run geronimo under jdk 1.5 for this to work.=A0

=A0

thanks

david jencks=A0

=A0


=A0


Hans=A0

=A0

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =
virtually = hanzz...
=A0 = (personal)
= (research)=A0




<= /HTML>= --Apple-Mail-25-926109044--