I have situation like
1. JPa project which contains all entities including persistence.xml
2. Created Compute intensive batch in Enterprise Application project
I try to create entity object and presist in JPA project .
Not committing the transaction.
Does any one has example for CI programming for JPA transactions
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
3 replies Latest Post - 2012-12-14T15:02:53Z by sspavan
Pinned topic (OPEN) JPA example for Compute Intensive programming model
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-12-14T15:02:53Z at 2012-12-14T15:02:53Z by sspavan
Veluri 27000584YB31 PostsACCEPTED ANSWER
Re: (OPEN) JPA example for Compute Intensive programming model2012-12-14T00:17:30Z in response to VeluriThank you Pavan It worked
I also change the persistance.xml as
persistence-unit name="BatchCISampleEJB" transaction-type="RESOURCE_LOCAL">
Perviously it was type= "JTA"
Can you suggest when to use exactly JTA and RESOURCE_LOCAL in point of batch world.
sspavan 060000R0AA60 Posts