• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction attributes question

 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a CMT, is it mandatory that *ALL* methods should be assigned a transaction attribute?
 
Pradeep Dhavakumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For ALL business methods declared in home and component interfaces atrributes are a must for CMT beans.(Pg 498/509-HFEJB)
[ July 23, 2004: Message edited by: Pradeep Dhavakumar ]
 
Giju George
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marco,
Refer 17.4.1 in the spec...

� For a session bean, the transaction attributes must be specified for the methods defined in the bean�s component interface and all the direct and indirect superinterfaces of the component interface, excluding the methods of the javax.ejb.EJBObject or javax.ejb.EJBLocalObject interface. Transaction attributes must not be specified for the methods of a session bean�s home interface.
� For an entity bean, the transaction attributes must be specified for the methods defined in the bean�s component interface and all the direct and indirect superinterfaces of the component interface, excluding the getEJBHome, getEJBLocalHome, getHandle, getPrimaryKey, and isIdentical methods; and for the methods defined in the bean�s home interface
and all the direct and indirect superinterfaces of the home interface, excluding the getEJBMetaData and getHomeHandle methods specific to the remote home interface.
� For a message-driven bean, the transaction attribute must be specified for the bean�s onMessage method.
 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Giju George:
Hi Marco,
Refer 17.4.1 in the spec...


Sorry, I espressed incorrectly my question...It was related to business methods.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic