0

What I think of is, that a transaction maintains a method to be executed. If not, there will be a rollback. This will be useful for manipulating database. But not for doing business logic or gathering data from a service. So I thought of declaring all these methods as @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) Since it is described as

Use the NotSupported attribute for methods that don't need transactions. Because transactions involve overhead, this attribute may improve performance. Tutorial Transactions

Thank you for your help

4
  • 2
    What's the actual question? You seem to be doing alright. You're thinking about it, you're reading documentation, you're drawing reasoned conclusions. Now you test it out. What do you need help with?
    – Gimby
    Oct 21, 2015 at 9:34
  • I was not concerned about that fact (being right). Thanks for your reply Oct 21, 2015 at 10:21
  • I have no idea what that means, "I was not concerned about that fact" :/ what is your question?
    – Gimby
    Oct 21, 2015 at 10:59
  • In which cases a transaction is important to use. Maybe you have other use cases where one can't live without it. Oct 21, 2015 at 11:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.