• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction Attributes  RSS feed

 
benkingsley junior
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Ideally which transaction attribute apart from "Required" can be used without there being any issues.

Thanks
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36441
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben,
Welcome to JavaRanch!

I'm not really sure what you are asking. What kind of issues are you referring to?
 
shashi pradhan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure about your question but if your method requir a transaction then you can use the attribute as "required" , if there is already a transaction exist then you can set your transaction attribute as "support", and if your method always requir a new transaction always then you can specify the attribute as "requirnew" like that. You can specify the transaction attribute as per ejb specification are as follows:

Required
RequiredNew
Support
Mendatory
Notsupported
Never


Shashi Bhusan Pradhan

[ June 02, 2005: Message edited by: shashi pradhan ]
[ June 02, 2005: Message edited by: shashi pradhan ]
 
Jeremy Hsu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Required and RequiredNew can be used without any problem.

Because you can only use these two with Entity bean. With session beans, you can use all.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For portability, use Required, RequiredNew and Mandatory because containers may optionally support the use of the NotSupported, Supports and Never transaction attributes for the methods of CMT entity beans. The reason is that the latter three attributes may be needed to make use of container-managed persistence with non-transactional data stores, so the result may vary depending on which EJB Container is used.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!