[ 
https://issues.apache.org/jira/browse/ARIES-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14201967#comment-14201967
 ] 

Giuseppe Gerla commented on ARIES-1251:
---------------------------------------

There also a test in aries JPAContextTest that had the same problem. I fix it 
using the navigation in the stack trace

Throwable e = ite;
      while(e != null && !(e instanceof TransactionRequiredException)) {
        e = e.getCause();
      }
      if(e==null) {
        e = ite.getCause();
      }

Could this help you?


> Support jpa 2.0 and 2.1 with the same code base
> -----------------------------------------------
>
>                 Key: ARIES-1251
>                 URL: https://issues.apache.org/jira/browse/ARIES-1251
>             Project: Aries
>          Issue Type: Improvement
>          Components: JPA
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: jpa-container-1.0.2, jpa-container-context-1.0.4
>
>
> We currently have two separate code bases for jpa 2.0 and 2.1 support. This 
> is very difficult to manage when we do source code changes.
> So I will try to create one code that supports both jpa 2.0 and 2.1 by using 
> Dynamic Proxies where we implement EntityManager or EntityManagerFactory. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to