Other Transactional Attributes
  • The EJB specification allows a number of other transactional attributes
    • Most are for special cases, using them can be dangerous!
      • NotSupported - Method cannot execute in a transaction
      • Supports - Method can execute in a transaction, but doesn't need one
      • RequiresNew - A new transaction must be started by the container for the method
      • Mandatory - A transactional context must exist prior to calling the method
      • Never - A transactional context must not exist prior to calling the method
  • Q: Why are these dangerous?
  • A: They destroy the normal ACID properties of transactions

Next Slide >>