[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...
Manik Surtani
manik at jboss.org
Tue May 22 08:28:59 EDT 2007
User: msurtani
Date: 07/05/22 08:28:59
Modified: src/org/jboss/cache/interceptors
InvocationContextInterceptor.java
Log:
JBCACHE-1038
Revision Changes Path
1.17 +3 -1 JBossCache/src/org/jboss/cache/interceptors/InvocationContextInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InvocationContextInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/InvocationContextInterceptor.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- InvocationContextInterceptor.java 22 May 2007 12:22:23 -0000 1.16
+++ InvocationContextInterceptor.java 22 May 2007 12:28:59 -0000 1.17
@@ -26,6 +26,7 @@
{
InvocationContext ctx = cache.getInvocationContext();
Option optionOverride = ctx.getOptionOverrides();
+ boolean suppressExceptions = false;
Transaction suspendedTransaction = null;
boolean resumeSuspended = false;
@@ -43,6 +44,7 @@
if (optionOverride.isFailSilently())
{
log.debug("FAIL_SILENTLY Option is present - suspending any ongoing transaction.");
+ suppressExceptions = true;
if (ctx.getTransaction() != null)
{
suspendedTransaction = txManager.suspend();
@@ -68,7 +70,7 @@
if (retval instanceof Throwable)
{
// if fail silently return a null
- if (ctx.getOptionOverrides().isFailSilently()) return null;
+ if (suppressExceptions) return null;
Throwable t = (Throwable) retval;
if (t instanceof RuntimeException)
More information about the jboss-cvs-commits
mailing list