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
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 Posts
Re: (OPEN) JPA example for Compute Intensive programming model2012-12-14T00:17:30ZThis is the accepted answer. This is the accepted answer.Thank 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
Re: (OPEN) JPA example for Compute Intensive programming model2012-12-14T15:02:53ZThis is the accepted answer. This is the accepted answer.
- Veluri 27000584YB
Not sure on exactly when to use JTA vs. RESOURCE_LOCAL. Initially I had JTA and it didn't work so I changed it to RESOURCE_LOCAL.