Hi,
container managed transaction were not supported by my example because I
have not yet found the right way to let it work so nice to know that you've
found it and I would be really happy to include it in my examples - so fell
free to contribute or send me a simple example.

About hibernate, I had to play with the startup order to have it working
but I do not remember if I finally managed to find the right setup - I'll
work on it as sono as I'm back from holidays :-)

Luca

On Monday, July 1, 2013, Sébastien Nicouleau wrote:

> Hi Lb,
>
> I use container managed transactions.
> For sharing, I have to prepare a package because it is an internal
> application. I think I can also provide an example including
> spring-data-jpa, with some modifications, including the creation of the
> proxy repository interface.
>
> It may be irrelevant here, but I tried your example hibernate, but without
> success, hibernate not start
>
> Sebastien.
> ------------------------------
> Date: Mon, 1 Jul 2013 07:29:29 -0700
> From: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> To: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> CC: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> Subject: RE: EclipseLink not flush transaction
>
> Hi Sebastien,
> do you have an example to share so I can include it in
> github.com/lburgazzoli/karaf-exanples ?
> 
> Did you use application or container managed transactions?
> —
> lb
>
>
> On Mon, Jul 1, 2013 at 2:20 PM, Sébastien Nicouleau <
> [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>> wrote:
>
> It's working.
> I copied the two classes (
> https://svn.apache.org/repos/asf/aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/java/org/apache/aries/jpa/eclipselink/adapter/platform/
> ) in my project.
>
> Thanks for your help.
>
> ------------------------------
> From: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> To: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> Subject: RE: EclipseLink not flush transaction
> Date: Mon, 1 Jul 2013 13:43:58 +0200
>
> Thanks , I thought it.
> But , If i add this line in my persistence.xml /properties :   <property
> name="eclipselink.target-server"
> value="org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer"/>
> I have a ClassNotfoundException, and I actived the DynamicImport-Package
> to be sure.
>
> OSGiTSServer is in a special bundle ?
>
> > Date: Mon, 1 Jul 2013 12:14:14 +0200
> > Subject: Re: EclipseLink not flush transaction
> > From: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> > To: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> >
> > I do not know if it is still necessary but there is an
> > aries-jpa-eclipselink project (you can find it in SVN).
> >
> > In your case the problem might be that the eclipselink.target-server
> > property is not set. See the class
> >
> https://svn.apache.org/repos/asf/aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/java/org/apache/aries/jpa/eclipselink/adapter/PersistenceUnitProxyWithTargetServer.java
> > where the mentioned property gets the value
> > org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer.
> >
> >
> > On 7/1/13, Sébastien Nicouleau <[email protected]<javascript:_e({}, 
> > 'cvml', '[email protected]');>>
> wrote:
> > > I made tests with EclipseLink 2.4.1, everything works except that the
> > > transaction never flush.The same configuration works with OpenJPA
> >
> >
> > --
> > Balazs Zsoldos
> > Software Architect
> > Mobile: +36-70/594-92-34
> >
> > Everit Kft.
> > https://www.everit.biz
> >
> > Everit OpenSource
> > http://everit.org
>
>
>

Reply via email to