This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes Default behaviour of TransactionAttributeType in case TransactionManagementType.CONTAINER Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Default behaviour of TransactionAttributeType in case TransactionManagementType.CONTAINER" Watch "Default behaviour of TransactionAttributeType in case TransactionManagementType.CONTAINER" New topic
Author

Default behaviour of TransactionAttributeType in case TransactionManagementType.CONTAINER

Anurag Blore
Ranch Hand

Joined: Jan 15, 2003
Posts: 74
All,

If in my stateless bean I have set the TransactionManagementType.CONTAINER(Container Manage Transaction) but I have not set anything in the bean or methods in the bean for


Then what will be the default value set for TransactionAttributeType, I am asking this in general and if its dependent on the application server then its jboss4.2.
I mean TransactionAttributeType is set to which value: REQUIRED,REQUIRESNEW,NOTSUPPORTED,SUPPORTS...etc.

Thanks,
Anurag
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10059
    
163

As per the EJB3 spec section 13.3.7:

By default, the value of the transaction attribute for a method of a bean with container-managed transaction demarcation is the REQUIRED


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default behaviour of TransactionAttributeType in case TransactionManagementType.CONTAINER