Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipselink / RCP / Gemini with @Transactional ala Spring?(Is there a possibility to do this?)
Eclipselink / RCP / Gemini with @Transactional ala Spring? [message #1132928] Fri, 11 October 2013 13:39
Jack Kilian is currently offline Jack Kilian
Messages: 36
Registered: March 2012
Member
Hi @all,

I implement a client using Gemini JPA(EclipseLink), Eclipse RCP e4 with DI and the JPA 2.0 annotations to define/access the JPA Models / EntityManager etc.

I did a lot of stuff with Spring in my past - so my Question is - is there a possibility to use a @Transactional annotation with Gemini JPA(EclipseLink) as it is possible in Spring.

I want not to use Spring! Instead I want to use the new Eclipse DI framework.
The current way to implement the transaction is:
 private void myTransactionMethod() {
   EntityManager em = emf.createEntityManager();
   em.getTransaction().begin();
   ...
   em.getTransaction().commit();
   em.close();
 }


to implement it like this...is a step backwards when we think in Dependency Injection manner Wink
that's the reason for my question.

best regards
jk
Previous Topic:[SOLVED] Using Eclipselink in RCP environment? Want to use EclipseLink 2.5.1
Next Topic:[Solved] Eclipselink + Karaf + Oracle JDBC
Goto Forum:
  


Current Time: Fri Oct 31 08:43:49 GMT 2014

Powered by FUDForum. Page generated in 0.01667 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software