Examples or Uses Cases to explain EJB Transaction Attributes

Viewed 13492

There are some good explanations of EJB Transaction Attributes (and annotations) out there, for example, OpenEJB's.

But sometimes when I try to cover this with someone who hasn't worked with many transactional resources, I see their eyes start to glaze over.

So my question - how would you explain EJB Transaction Attributes to your grandmother?

  • Required
  • RequiresNew
  • Mandatory
  • NotSupported
  • Supports
  • Never

I'm thinking a contrived example, analogy, or a concise real-world use case would be helpful.

2 Answers
Related