Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Attributes Requirement

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I notice that I can use <method-name>*</method-name> and <trans-attribute>Required</trans-attribute> to specify the transaction attributes for all the method of a session bean. Now my question is that some home and componenet interfaces methods shouldn't be specified any transaction attributes, how to understand this situation, the "*" for all methods will automatically exclude those interface methods which not require any transaction attributes?
 
Sany Bel
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you specify transaction sttributes using <method-name>*</method-name> you are specifying the transactions for component interface's business methods. I don't think they apply for container callback methods.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic