Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 48712 invoked from network); 2 Oct 2006 19:31:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 19:31:23 -0000 Received: (qmail 98292 invoked by uid 500); 2 Oct 2006 19:31:23 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 98030 invoked by uid 500); 2 Oct 2006 19:31:22 -0000 Mailing-List: contact tuscany-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-dev@ws.apache.org Received: (qmail 98020 invoked by uid 99); 2 Oct 2006 19:31:22 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 12:31:22 -0700 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET Received: from [69.59.195.3] ([69.59.195.3:58776] helo=pyramid-02.kattare.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id C4/26-24395-60961254 for ; Mon, 02 Oct 2006 12:31:18 -0700 Received: from [172.17.30.174] ([66.248.222.242]) (authenticated bits=0) by pyramid-02.kattare.com (8.13.6/8.13.6) with ESMTP id k92JVE4Y014909 for ; Mon, 2 Oct 2006 12:31:14 -0700 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7982ADC6-1257-4E02-854D-1CA67BB76BE4@myromatours.com> Content-Transfer-Encoding: 7bit From: Jim Marino Subject: Re: EJB3 (JPA) support Date: Mon, 2 Oct 2006 12:30:15 -0700 To: tuscany-dev@ws.apache.org X-Mailer: Apple Mail (2.752.2) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Oct 2, 2006, at 11:35 AM, Meeraj Kunnumpurath wrote: > Jim, > > From your reply, I think the key is injecting in a persistence > unit. Hibernate has an EJB 3.0 implementation (both the OR > annotations and the entity manager). This will work pretty much the > same as open JPA (or any closed JPA :-), sorry couldn't resist it) Yes I think we want to have a generic integration if possible so we can use ClosedJPA too ;-) There may be some customizations we need for particular vendor impls. > > May be we can have a framework that can support any JPA > implementation make the EMF available as a system service. Yes agreed, although we may not want to say "EMF" since that may confuse people with Eclipse Modeling Framework :-) I'd also like to get a Hibernate integration going for people that like that API. Jim > > Ta > Meeraj > > >> From: Jim Marino >> Reply-To: tuscany-dev@ws.apache.org >> To: tuscany-dev@ws.apache.org >> Subject: Re: EJB3 (JPA) support >> Date: Mon, 2 Oct 2006 10:30:20 -0700 >> >> Sure (since both you and Meeraj asked)... >> >> Basically, I think the use cases are pretty much the same for >> JPA, Hibernate, or JDO (not surprisingly): an application >> developer wants to use a strongly-typed O/R mapper to persist >> data used within a service or composite implementation. They >> should be able to use any of the JPA annotations to inject an >> entity manager onto a service instance: >> >> public class FooImpl extends Foo { >> @PersistenceUnit(name="example") >> protected EntityManager entityManager; >> >> } >> >> Hibernate would work the same way, except inject a Session. This >> would basically be an example of the "layering" approach to Java >> C&I that we have discussed in the spec group. Under the covers, >> Tuscany is managing instances of EntityManagerFactory as system >> services and there is an annotation extension which is >> responsible for performing the injection of EntityManager >> instances (non-thread-safe) onto component implementation instances. >> >> I would expect developers to use this approach when: >> >> - writing in Java or perhaps a "Java-friendly" language such as >> Groovy (obviously!) >> - they don't need to perform batch-oriented operations (JDBC is >> better for that) >> - they want to manipulate data in an O-O fashion as opposed to in >> a loosely typed way or something like active record >> - they don't want to use declarative services, or they are not >> suited for an application's needs >> - they just like JPA or Hibernate for whatever reason >> >> From a non-technical perspective, this helps to embrace several >> communities by showing how their technologies are relevant in an >> SCA environment. >> >> Jim >> >> >> >> >> >> >> On Oct 2, 2006, at 8:00 AM, scabooz wrote: >> >>> Hi Jim, >>> >>> This is the first time I've seen this topic discussed on the >>> list. Apologies >>> if I've missed it previously. Can you illuminate some of your >>> thinking behind it? I'm interested in understanding the use >>> cases you >>> might be thinking of supporting, from at least the >>> perspective of the app developer. >>> >>> thanks >>> >>> Dave Booz >>> >>> >>> ----- Original Message ----- From: "Jim Marino" >>> >>> To: >>> Sent: Monday, October 02, 2006 3:24 AM >>> Subject: EJB3 (JPA) support >>> >>> >>>> Hi, >>>> >>>> I checked in a skeleton of EJB3 persistence support (using >>>> OpenJPA) that will leverage the system service work I just >>>> did. If anyone is interested in helping with this or adding >>>> in Hibernate support let me know. We may want to look at >>>> providing a generic EJB3 JPA extension, although I'm not sure >>>> how much common code would exist across implementations. >>>> >>>> Jim >>>> >>>> ------------------------------------------------------------------- >>>> -- >>>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org >>>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org >>> >>> >>> -------------------------------------------------------------------- >>> - >>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org >>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org >> For additional commands, e-mail: tuscany-dev-help@ws.apache.org >> > > _________________________________________________________________ > Get today's hot entertainment gossip http://movies.msn.com/movies/ > hotgossip > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: tuscany-dev-help@ws.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org For additional commands, e-mail: tuscany-dev-help@ws.apache.org