rmannibucau edited a comment on pull request #64:
URL: https://github.com/apache/openjpa/pull/64#issuecomment-658034247


   @struberg point is that the classloader does it and the transformer is 
called under that lock already
   @jgrassel will test your sample but today I'm off but I will come back to 
you likely tomorrow, thanks a lot for setting up a project!
   
   edit: tested on tomee adding:
   
               <plugin>
                   <groupId>org.apache.tomee.maven</groupId>
                   <artifactId>tomee-maven-plugin</artifactId>
                   <version>8.0.3</version>
               </plugin>
   
   It works as expected:
   
        Starting Worker thread 1...
        Starting Worker thread 2...
        Worker thread Thread-63 started.
        Worker Threads Complete.
   
        Now to verify enhancement. Look at the interfaces associated with 
EntityA and EntityC:
        Worker thread Thread-64 started.
        Worker thread Thread-63 finished.
        Worker thread Thread-64 finished.
        Class: model.EntityA
        Interfaces:
        org.apache.openjpa.enhance.PersistenceCapable
   
   
        Class: model.EntityC
        Interfaces:
        org.apache.openjpa.enhance.PersistenceCapable 
he.openjpa.enhance.PersistenceCapable
        Worker Threads Complete.
   
        Now to verify enhancement. Look at the interfaces associated with 
EntityA and EntityC:
        Worker thread Thread-66 finished.
        Class: model.EntityA
        Interfaces:
        org.apache.openjpa.enhance.PersistenceCapable
   
   
        Class: model.EntityC
        Interfaces:
        org.apache.openjpa.enhance.PersistenceCapable
   
   In particular with the proposed patch ^^. Any way to patch liberty locally 
to run openjpa (creating my liberty.openjpa.jar with blueprint registration 
maybe?).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to