The moose likes Object Relational Mapping and the fly likes Transaction management using JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Transaction management using JPA" Watch "Transaction management using JPA" New topic
Author

Transaction management using JPA

Raghuraman Guruswamy
Ranch Hand

Joined: Aug 10, 2008
Posts: 100
Hi all,

I am working on a application which involves transactions spanning across multiple pages.We are using JPA for persistence.
In this scenario, i am wondering about how to go handle the transactions using JPA?
The scenario is like this.. User selects some items on 1st page,adds something in the 2nd page. etc and finally submits in the 4th page..
Saving the attributes in session will be very costly as the perfomance of the application will be hit. Is there anyother wat to do it in a better way?
Can anyone please guide me on this?

Thanks a lot for your time.
James Boswell
Ranch Hand

Joined: Nov 09, 2011
Posts: 344
Raghuraman

I am a little confused what you are asking here. Firstly, you mention transactions using JPA and then you're not sure about storing data in the session. The 2 are completely separate issues.

Without knowing more about your front-end software stack, I cannot help with this.

With your JPA, I would say you need a single transaction around the submission of data on the final page.
 
 
subject: Transaction management using JPA
 
Threads others viewed
Using CMP & JPA in same application
A Query when using EJB Container Manestaged Transaction
Deploying Hibernate with JPA
How to control transactions when using container managed Entity Manager
Sun Certified JPA Developer for the JavaEE6 Platform Beta
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture