Loading
CMT Transaction Attributes

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  CMT Transaction Attributes ?


Ans)

 

 

Transaction Attribute Client-Controlled Transaction Exists Client-Controlled Transaction Does Not Exist
Not Supported Container suspends the client transaction  Use no transaction
Supports Use client-controlled transaction  Use no transaction
Required Use client-controlled transaction  Container starts a new transaction
Requires New Container suspends the client transaction and starts a new transaction Container starts a new transaction
Mandatory  Use client-controlled transaction  Exception raised
Never Exception raised Use no transaction

 

 In EBJ 3.0 you
                @Stateful
                @TransactionManagement(value=TransactionManagementType.CONTAINER)
                @TransactionAttribute(value=REQUIRED)
                public class CartBean implements Cart {
                    private ArrayList items;
                    @PostConstruct
                    public void initialize() {
                        items = new ArrayList();
                    }
                    @Remove
                    @TransactionAttribute(value=REQUIRES_NEW)
                    public void finishedShipping() {
                        // Release any resources.
                    }
                    public void addItem(String item) {
                        items.add(item);
                    }
                    public void removeItem(String item) {
                        items.remove(item);
                    }
                }



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

CMT Transaction Attributes


CMT Transaction Attributes

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free