• Post Reply Bookmark Topic Watch Topic
  • New Topic

Warning about SessionSynchronization  RSS feed

Christophe Verré
Posts: 14691
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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!