File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Transaction Control for a method. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Transaction Control for a method." Watch "Transaction Control for a method." New topic

Transaction Control for a method.

Hope P

Joined: Oct 25, 2002
Posts: 2
�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
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
Use NotSupported for that method.

Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
I agree. Here's the link:
subject: Transaction Control for a method.
It's not a secret anymore!