What is the difference between JTA and a local transaction?

An example that shows when to use JTA and when to use a local transaction would be great.

jta
Edit
Report