Hi, Unfortunately, I haven't use Hibernate annotations except Spring annotations to inject transactional aspects in my service layer. I will try to replay with them in the next coming weeks as I have experienced problems. @Transaction were not injected so the transactions were not committed and data not saved in the DB.
Regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - Karaf - ServiceMix Committer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blog : http://cmoulliard.blogspot.com | Twitter : http://twitter.com/cmoulliard Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard On Mon, Sep 13, 2010 at 10:05 AM, Christian Schneider <[email protected]> wrote: > Hi Charles, > > have you been able to use hibernate annotations with pure bundles? I used > the hibernate packages from springsource. The annotations bundle is a > fragment for the hibernate bundle but at least in my case I was not able to > import the annotation classes. It looked as if the annotation bundle was not > there. Did you do anything special to make it work? Btw. I used equinox not > servicemix or felix. > > Thanks > > Christian > > > Am 13.09.2010 09:37, schrieb Charles Moulliard: >> >> Hi,rom springs >> >> As you plan to use ORM top of OSGI framework like Apache Felix (and >> maybe Apache Karaf or ServiceMix), I suggest that you have a look to >> Apache ARIES project which propose a JPA implementation based on OSGI >> EE specification. >> You can find info here : http://incubator.apache.org/aries/& >> http://incubator.apache.org/aries/jpaproject.html >> >> Examples can be find here : http://incubator.apache.org/aries/samples.html >> >> I have personaly used Hibernate + Spring on Apache ServiceMix >> successfully but will considering to use in the future JPA with >> OpenJPA or EclipseLink. >> >> When you will select a product, check that the features/functionality >> provided will correspond to your expectations because sometimes the >> behavior of an ORM is not the same as another. >> >> Regards, >> >> Charles Moulliard >> >> Senior Enterprise Architect (J2EE, .NET, SOA) >> Apache Camel - Karaf - ServiceMix Committer >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Blog : http://cmoulliard.blogspot.com | Twitter : >> http://twitter.com/cmoulliard >> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard >> >> >> >> On Mon, Sep 13, 2010 at 9:29 AM, Jim Talbut<[email protected]> >> wrote: >>> >>> I've used OpenJPA 2.0 with OSGi, though only in as yet unreleased >>> projects so there may be things I missed. >>> I found it much simpler to get going in OSGi than Hibernate (which was my >>> first attempt). >>> I strongly recommend giving OpenJPA a go - I've switched to using it in >>> my non-JPA projects too now, partly because I only want to work with one ORM >>> and partly because I find OpenJPA better documented than Hibernate with JPA >>> (the documentation for Hibernate with JPA tends to relate everything to the >>> normal behaviour of Hibernate, which isn't much help if you don't know >>> that). >>> >>> Jim >>> >>> -----Original Message----- >>> From: LongkerDandy [mailto:[email protected]] >>> Sent: 11 September 2010 13:03 >>> To: [email protected] >>> Subject: ORM Framework Suggestions >>> >>> Hi >>> >>> I'm been try to use DataNucleus/JDO with felix, but no success. >>> There are some ClassNotDefine exception which I think is something about >>> classloader. >>> >>> I may able bypass this, but since most JDO/JPA framwork are based on >>> classloader. >>> I wonder if there are any better way to do the ORM thing with OSGi. >>> And if anyone has some successful story with it. >>> >>> Regards >>> LongkerDandy >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > -- > ---- > http://www.liquid-reality.de > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

