Hello Philippe, I've created a small patch for this problem. I have attached the modified source code (the source code is based on Jonas 3.2.1). I hope it is possible to integrate it in the Jonas code line. The patched Jonas will try to rollback (in stead of commit) the started transaction for a method on the entity home interface, if the transaction has been marked to rollbackonly. Thanks, Arjan Kok Compuware Amsterdam http://www.optimalJ.com <http://www.optimalJ.com>
-----Original Message----- From: Philippe Coq [mailto:[EMAIL PROTECTED]] Sent: Friday, October 12, 2001 3:50 PM To: Kok, Arjan Cc: '[EMAIL PROTECTED]' Subject: Re: getting RollbackException from ejbCreate() when throwing an Application Exception "Kok, Arjan" wrote: Hello there, In Jonas 2.3 we experience a problem when trying to throw an Application Exception (e.g. CreateException) in an ejbCreate() method, and when we set the transaction to RollbackOnly: we receive a RollbackException instead of an ApplicationException at the client. The ejbCreate() runs in the context of a transaction Jonas started immediately before dispatching the ejbCreate(). If we do not set the transaction to RollbackOnly, we do receive the ApplicationException. Any ideas? Thanks, Arjan Kok Compuware Amsterdam. Hi, It is a JOnAS bug. I have reproduced it. If you do the same thing (setting RollbackOnly and throwing an Application exception) in a method defined in the enterprise bean's remote interface it is working fine (the client receives the Application exception) but it doesn't working in ejbCreate it is a bug we have to fix. Thanks! Regards, -- Philippe Philippe Coq Evidian Phone: (33) 04 76 29 78 49 Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France Download our EJBServer at http://www.objectweb.org <http://www.objectweb.org>
JEntityHome.java
Description: Binary data
