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

From: [email protected]
To: [email protected]
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:[email protected]] 
Sent: Tuesday, July 02, 2013 4:56 PM
To: [email protected]
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: [email protected]
To: [email protected]
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:[email protected]] 
Sent: Tuesday, July 02, 2013 1:08 AM
To: [email protected]
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: [email protected]
To: [email protected]
CC: [email protected]
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 
<[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]
To: [email protected]
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: [email protected]
> To: [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]> 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