this issue is identical to : https://community.jboss.org/thread/195386?start=0&tstart=0
looks like issue is caused by : TaskSessionSpringFactoryImpl.java , initialization of TaskPersistenceManager is determined by:
| private TaskPersistenceManager createTaskPersistenceManager() { |
| | TaskPersistenceManager tpm; |
| | TaskSpringTransactionManager ttxm = new TaskSpringTransactionManager(springTransactionManager, useJTA); |
| | if (useEMF) { |
| | tpm = new TaskPersistenceManager(emf.createEntityManager(), ttxm); -------------------- this is initialized is it correct ???????? |
| | } else { |
| | tpm = new TaskPersistenceManager(springEM, ttxm); |
| | tpm.setUseSharedEntityManager(true); ---------------------------------- shouldnt this be initialized ???? if yes then how to configure springEM |
| | } |
| | return tpm; |
| } |