• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Control for a method.

 
Hope P
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
�I have a method in my entity bean that calls a stored procedure. Now this stored procedure fails when run in a transaction context, but works fine otherwise.Hence I want to restrict this ejb method from participating in any transaction,. Though the ejb has container managed transaction�?Is it possible.
I tried out using �never� for that method in ejb-jar.xml,�but still that method gets associated with a transaction context and the stored procedure throws error??
How can I avoid this.Any pointers will be appreciated.?
 
Howard Kushner
author
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use NotSupported for that method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic