You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Sébastien Nicouleau <se...@hotmail.com> on 2013/07/01 11:37:54 UTC

EclipseLink not flush transaction

I made ​​tests with EclipseLink 2.4.1, everything works except that the transaction never flush.The same configuration works with OpenJPA 		 	   		  

Re: EclipseLink not flush transaction

Posted by lb <lb...@gmail.com>.
Hi, can you post/link your code?
—
lb

On Mon, Jul 1, 2013 at 12:15 PM, Balázs Zsoldos <ba...@everit.biz>
wrote:

> 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 <se...@hotmail.com> 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

RE: EclipseLink not flush transaction

Posted by Balázs Zsoldos <ba...@everit.biz>.
The mentioned class is in the jpa-container-eclipselink adapter. The
project is in the SVN of aries (maybe in maven repo as well). I used
it when aries was in version 0.3 a lot and it worked well when I used
the transaction manager of aries (that uses the code of geronimo) or
the one coming from Glassfish.

I recommend to compile the code of that project yourself in the way
that you set the dependency version of aries that you use.

However, since a year we discontinued to use Eclipselink as it was too
buggy and switched to hibernate so I cannot really give you a sample.

2013.07.01. 13:44, "Sébastien Nicouleau" <se...@hotmail.com> ezt írta:
>
> 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: balazs.zsoldos@everit.biz
> > To: user@aries.apache.org
> >
> > 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 <se...@hotmail.com> 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

RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
Hi Lucas,
I'm very busy, I expect to get back on osgi early next week.
Sébastien

Date: Wed, 10 Jul 2013 15:49:16 +0200
Subject: Re: EclipseLink not flush transaction
From: lburgazzoli@gmail.com
To: user@aries.apache.org

Hi Sébastien, 
I've opened an issue on my repository for reference: https://github.com/lburgazzoli/lb-karaf-examples/issues/1 and I've started doing some work. Feel free to comment/contribute.


- Luca



On Tue, Jul 2, 2013 at 6:34 PM, Sébastien Nicouleau <se...@hotmail.com> wrote:




as I said to Lucas, I will prepare a package exmaple.My test use Karaf 3.0.0 , and aries transaction manager.

From: tom.leung@netage.com.hk

To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction
Date: Tue, 2 Jul 2013 17:41:39 +0800

Interesting!!!

 
I have tested Eclipselink v2.4 with Karaf 2.3.0, cannot flush the data into the database while using declarative transaction.

 
On the Eclipse web page, JTA is not currently supported.

http://wiki.eclipse.org/Gemini/JPA/Documentation/Limitations

 
May you post out the sample of persistence.xml and the blueprint xml for reference?

 
What testing environment you are using? on Karaf or on standalone OSGi framework such as Equinox or felix?

Is your program running against Aries transaction manager?
 

Best Rgds,
 

Tom
 

 
 

From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 

Sent: Tuesday, July 02, 2013 4:56 PM

To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction

 
Hi , are you sure , because my persistence.xml declares JTA , and without the two classes recovered eclipsleink-Adaptater, EclipseLink participated in the JTA transaction (injected via blueprint), but not flushed.

with two classes, it works perfectly.

From: tom.leung@netage.com.hk
To: user@aries.apache.org

Subject: RE: EclipseLink not flush transaction
Date: Tue, 2 Jul 2013 09:08:14 +0800
EclipseLink doesn't support OSGi container transaction right now.

 
Only OpenJPA supports OSGi container transaction.

 
Hibernate 4.2.2 or previous version is still buggy, it only works well with OSGi container transaction if the primary key for the JPA entity class is auto-generated.

 
Best Rgds,
 

Tom
 

 

From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 

Sent: Tuesday, July 02, 2013 1:08 AM
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction

 
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: lburgazzoli@gmail.com
To: user@aries.apache.org
CC: user@aries.apache.org

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 <se...@hotmail.com> 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: seb_nicouleau@hotmail.com
To: user@aries.apache.org

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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org

> 
> 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 <se...@hotmail.com> 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

 
 		 	   		  


 		 	   		  

Re: EclipseLink not flush transaction

Posted by lb <lb...@gmail.com>.
Hi Sébastien,
I've opened an issue on my repository for reference:
https://github.com/lburgazzoli/lb-karaf-examples/issues/1 and I've started
doing some work. Feel free to comment/contribute.

- Luca



On Tue, Jul 2, 2013 at 6:34 PM, Sébastien Nicouleau <
seb_nicouleau@hotmail.com> wrote:

> as I said to Lucas, I will prepare a package exmaple.
> My test use Karaf 3.0.0 , and aries transaction manager.
>
> ------------------------------
> From: tom.leung@netage.com.hk
> To: user@aries.apache.org
> Subject: RE: EclipseLink not flush transaction
> Date: Tue, 2 Jul 2013 17:41:39 +0800
>
> Interesting!!!
>
>
>
> I have tested Eclipselink v2.4 with Karaf 2.3.0, cannot flush the data
> into the database while using declarative transaction.
>
>
>
> On the Eclipse web page, JTA is not currently supported.
>
> http://wiki.eclipse.org/Gemini/JPA/Documentation/Limitations
>
>
>
> May you post out the sample of persistence.xml and the blueprint xml for
> reference?
>
>
>
> What testing environment you are using? on Karaf or on standalone OSGi
> framework such as Equinox or felix?
>
> Is your program running against Aries transaction manager?
>
>
>
> Best Rgds,
>
>
>
> Tom
>
>
>
>
>
>
>
> *From:* Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com]
> *Sent:* Tuesday, July 02, 2013 4:56 PM
>
> *To:* user@aries.apache.org
> *Subject:* RE: EclipseLink not flush transaction
>
>
>
> Hi , are you sure , because my persistence.xml declares JTA , and without
> the two classes recovered eclipsleink-Adaptater, EclipseLink participated
> in the JTA transaction (injected via blueprint), but not flushed.
>
> with two classes, it works perfectly.
> ------------------------------
>
> From: tom.leung@netage.com.hk
> To: user@aries.apache.org
> Subject: RE: EclipseLink not flush transaction
> Date: Tue, 2 Jul 2013 09:08:14 +0800
>
> EclipseLink doesn't support OSGi container transaction right now.
>
>
>
> Only OpenJPA supports OSGi container transaction.
>
>
>
> Hibernate 4.2.2 or previous version is still buggy, it only works well
> with OSGi container transaction if the primary key for the JPA entity class
> is auto-generated.
>
>
>
> Best Rgds,
>
>
>
> Tom
>
>
>
>
>
> *From:* Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com<se...@hotmail.com>]
>
> *Sent:* Tuesday, July 02, 2013 1:08 AM
> *To:* user@aries.apache.org
> *Subject:* RE: EclipseLink not flush transaction
>
>
>
> 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: lburgazzoli@gmail.com
> To: user@aries.apache.org
> CC: user@aries.apache.org
> 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 <
> seb_nicouleau@hotmail.com> 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: seb_nicouleau@hotmail.com
> To: user@aries.apache.org
> 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: balazs.zsoldos@everit.biz
> > To: user@aries.apache.org
> >
> > 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 <se...@hotmail.com> 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
>
>
>

RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
as I said to Lucas, I will prepare a package exmaple.My test use Karaf 3.0.0 , and aries transaction manager.

From: tom.leung@netage.com.hk
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction
Date: Tue, 2 Jul 2013 17:41:39 +0800

Interesting!!! I have tested Eclipselink v2.4 with Karaf 2.3.0, cannot flush the data into the database while using declarative transaction. On the Eclipse web page, JTA is not currently supported.http://wiki.eclipse.org/Gemini/JPA/Documentation/Limitations May you post out the sample of persistence.xml and the blueprint xml for reference? What testing environment you are using? on Karaf or on standalone OSGi framework such as Equinox or felix?Is your program running against Aries transaction manager? Best Rgds, Tom   From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 
Sent: Tuesday, July 02, 2013 4:56 PM
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction Hi , are you sure , because my persistence.xml declares JTA , and without the two classes recovered eclipsleink-Adaptater, EclipseLink participated in the JTA transaction (injected via blueprint), but not flushed.with two classes, it works perfectly.From: tom.leung@netage.com.hk
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction
Date: Tue, 2 Jul 2013 09:08:14 +0800EclipseLink doesn't support OSGi container transaction right now. Only OpenJPA supports OSGi container transaction. Hibernate 4.2.2 or previous version is still buggy, it only works well with OSGi container transaction if the primary key for the JPA entity class is auto-generated. Best Rgds, Tom  From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 
Sent: Tuesday, July 02, 2013 1:08 AM
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction 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: lburgazzoli@gmail.com
To: user@aries.apache.org
CC: user@aries.apache.org
Subject: RE: EclipseLink not flush transactionHi 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 <se...@hotmail.com> 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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction
Date: Mon, 1 Jul 2013 13:43:58 +0200Thanks , 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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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  		 	   		  

RE: EclipseLink not flush transaction

Posted by Tom Leung <to...@netage.com.hk>.
Interesting!!!

 

I have tested Eclipselink v2.4 with Karaf 2.3.0, cannot flush the data into the database while using declarative transaction.

 

On the Eclipse web page, JTA is not currently supported.

http://wiki.eclipse.org/Gemini/JPA/Documentation/Limitations

 

May you post out the sample of persistence.xml and the blueprint xml for reference?

 

What testing environment you are using? on Karaf or on standalone OSGi framework such as Equinox or felix?

Is your program running against Aries transaction manager?

 

Best Rgds,

 

Tom

 

 

 

From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 
Sent: Tuesday, July 02, 2013 4:56 PM
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction

 

Hi , are you sure , because my persistence.xml declares JTA , and without the two classes recovered eclipsleink-Adaptater, EclipseLink participated in the JTA transaction (injected via blueprint), but not flushed.

with two classes, it works perfectly.

  _____  

From: tom.leung@netage.com.hk
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction
Date: Tue, 2 Jul 2013 09:08:14 +0800

EclipseLink doesn't support OSGi container transaction right now.

 

Only OpenJPA supports OSGi container transaction.

 

Hibernate 4.2.2 or previous version is still buggy, it only works well with OSGi container transaction if the primary key for the JPA entity class is auto-generated.

 

Best Rgds,

 

Tom

 

 

From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 
Sent: Tuesday, July 02, 2013 1:08 AM
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction

 

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: lburgazzoli@gmail.com
To: user@aries.apache.org
CC: user@aries.apache.org
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 <se...@hotmail.com> 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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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

 


RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
Hi , are you sure , because my persistence.xml declares JTA , and without the two classes recovered eclipsleink-Adaptater, EclipseLink participated in the JTA transaction (injected via blueprint), but not flushed.with two classes, it works perfectly.

From: tom.leung@netage.com.hk
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction
Date: Tue, 2 Jul 2013 09:08:14 +0800

EclipseLink doesn't support OSGi container transaction right now. Only OpenJPA supports OSGi container transaction. Hibernate 4.2.2 or previous version is still buggy, it only works well with OSGi container transaction if the primary key for the JPA entity class is auto-generated. Best Rgds, Tom  From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 
Sent: Tuesday, July 02, 2013 1:08 AM
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction 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: lburgazzoli@gmail.com
To: user@aries.apache.org
CC: user@aries.apache.org
Subject: RE: EclipseLink not flush transactionHi 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 <se...@hotmail.com> 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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction
Date: Mon, 1 Jul 2013 13:43:58 +0200Thanks , 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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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  		 	   		  

RE: EclipseLink not flush transaction

Posted by Tom Leung <to...@netage.com.hk>.
EclipseLink doesn't support OSGi container transaction right now.

 

Only OpenJPA supports OSGi container transaction.

 

Hibernate 4.2.2 or previous version is still buggy, it only works well with OSGi container transaction if the primary key for the JPA entity class is auto-generated.

 

Best Rgds,

 

Tom

 

 

From: Sébastien Nicouleau [mailto:seb_nicouleau@hotmail.com] 
Sent: Tuesday, July 02, 2013 1:08 AM
To: user@aries.apache.org
Subject: RE: EclipseLink not flush transaction

 

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: lburgazzoli@gmail.com
To: user@aries.apache.org
CC: user@aries.apache.org
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 <se...@hotmail.com> 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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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

 


RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
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: lburgazzoli@gmail.com
To: user@aries.apache.org
CC: user@aries.apache.org
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 <se...@hotmail.com> 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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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
 		 	   		   		 	   		  
 		 	   		  

Re: EclipseLink not flush transaction

Posted by lb <lb...@gmail.com>.
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: lburgazzoli@gmail.com <javascript:_e({}, 'cvml',
> 'lburgazzoli@gmail.com');>
> To: user@aries.apache.org <javascript:_e({}, 'cvml',
> 'user@aries.apache.org');>
> CC: user@aries.apache.org <javascript:_e({}, 'cvml',
> 'user@aries.apache.org');>
> 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 <
> seb_nicouleau@hotmail.com <javascript:_e({}, 'cvml',
> 'seb_nicouleau@hotmail.com');>> 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: seb_nicouleau@hotmail.com <javascript:_e({}, 'cvml',
> 'seb_nicouleau@hotmail.com');>
> To: user@aries.apache.org <javascript:_e({}, 'cvml',
> 'user@aries.apache.org');>
> 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: balazs.zsoldos@everit.biz <javascript:_e({}, 'cvml',
> 'balazs.zsoldos@everit.biz');>
> > To: user@aries.apache.org <javascript:_e({}, 'cvml',
> 'user@aries.apache.org');>
> >
> > 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 <seb_nicouleau@hotmail.com<javascript:_e({}, 'cvml', 'seb_nicouleau@hotmail.com');>>
> 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
>
>
>

RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
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: lburgazzoli@gmail.com
To: user@aries.apache.org
CC: user@aries.apache.org
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 <se...@hotmail.com> 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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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
 		 	   		   		 	   		  
 		 	   		  

RE: EclipseLink not flush transaction

Posted by lb <lb...@gmail.com>.
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
<se...@hotmail.com> 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: seb_nicouleau@hotmail.com
> To: user@aries.apache.org
> 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: balazs.zsoldos@everit.biz
>> To: user@aries.apache.org
>> 
>> 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 <se...@hotmail.com> 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
>  		 	   		   		 	   		  

RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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
 		 	   		   		 	   		  

RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
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: seb_nicouleau@hotmail.com
To: user@aries.apache.org
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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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
 		 	   		   		 	   		  

RE: EclipseLink not flush transaction

Posted by Sébastien Nicouleau <se...@hotmail.com>.
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: balazs.zsoldos@everit.biz
> To: user@aries.apache.org
> 
> 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 <se...@hotmail.com> 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
 		 	   		  

Re: EclipseLink not flush transaction

Posted by Balázs Zsoldos <ba...@everit.biz>.
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 <se...@hotmail.com> 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