• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Warning about SessionSynchronization

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wanted to share something which might be useful to know.
I was playing with Session beans and the SessionSynchronization interface.
I thought that I could set a method's transaction attribute to NotSupported,
for methods which don't care about transactions, but :

If an enterprise bean implements the javax.ejb.SessionSynchronization interface, the Application Assembler can specify only the following values for the transaction attributes of the bean's methods: Required, RequiresNew, or Mandatory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic