Monday, December 16, 2013

Transaction Propagation

   "Making a Business Method working with client supplied Transaction

    is called 'Transaction Propagation'."

There are 6 types of "Transaction Propagation" attributes..
                                                                                                 
1. REQUIRED

2. REQUIRES NEW

3. SUPPORTS

4. NOT SUPPORTED

5. MANDATORY

6. NEVER

REQUIRED: If Client Calls Service(Business) Method having this attribute with Transaction then Service Method runs with That Transaction else Service Method runs with new Transaction.This is Most Popularly used Attributed.

REQUIRES NEW: Service Method having this attribute Always Runs with new Transaction Even though  the Client calls with Transaction or without Transaction.

SUPPORTS: Service Method having this attribute
 runs with Transaction if Client Calls with Transaction.
 runs with out Transaction if Client Calls with out Transaction.

NOT SUPPORTED: Service Method having this attribute Always Runs with out Transaction Even though  the Client calls with Transaction or without Transaction.

MANDATORY: The Client Should always call Service Method having this attribute with Transaction otherwise Exception will be raised.

NEVER: The Client Should always call Service Method having this attribute with out Transaction otherwise Exception will be raised.

NOTE: The Programmatic Transaction Management approach Does not support to this Transaction Propagation where Declarative Transaction Management Supports.


0 comments:

Post a Comment