Hi,
I am pretty much a beginner with Spring, and I am trying to set up a new architecture with Spring and Hibernate.
We have one database, but also a server that our clients talk to. For example, they can upload a form to the server and access it later (it's details also get added to the database).
I would like to combine these two actions - uploading the form to the server, and updating the database - into a single "transaction", but, I am having a particular problem figuring out how to configure Spring in such a case.
For example, if the form is uploaded ok, but updating the database fails for some reason, how does Spring know how to roll back the uploading of the form to the server ie to call a method that removes it from the server? Do I need to define some kind of transaction manager for the server? If so, any pointers would be appreciated!
cheers, and apologies if this isn't clear!
David


Reply With Quote