Point of Interception
  • Q: What happens at the point of interception?
  • A: The container inspects the properties of the deployed bean and sets up the proper execution environment
  • For example, the CheckPassword() method is marked as requiring a transaction
    • Call comes in to wrapper CheckPassword() method
    • Method checks to see if a transaction is active
    • If not, it starts one
    • Method calls CheckPassword() method on bean instance that it has
    • Upon return, wrapper method checks if it started a transaction
    • If so, it completes the transaction
    • Results returned back to client

Next Slide >>