we found our misstake too. thanks for fast response.
Best Regards, Rafal
At 11:45 30.05.2003 +0100, Adrian Brock wrote:
Hi,
A normal exception doesn't automatically rollback the transaction. Only Errors, RuntimeExceptions and RemoteExceptions are handled by the server.
You request a rollback using the EJB context.
SessionContext ctx;
public void setSessionContext(SessionContext ctx) { this.ctx = ctx; }
try { ... } catch (ServiceLocatorException sle) { logger.fatal("importArchive() failed", sle); ctx.setRollbackOnly(); // !!!!!! HERE !!!!!! throw new TransferException("Transfer::importArchive() failed with ServiceLocatorException", sle); }
xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
