geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r924537 - /geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/work/WorkerContext.java
Date Wed, 17 Mar 2010 22:44:23 GMT
Author: djencks
Date: Wed Mar 17 22:44:22 2010
New Revision: 924537

URL: http://svn.apache.org/viewvc?rev=924537&view=rev
Log:
supply an error code when an unknown context is encountered

Modified:
    geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/work/WorkerContext.java

Modified: geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/work/WorkerContext.java
URL: http://svn.apache.org/viewvc/geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/work/WorkerContext.java?rev=924537&r1=924536&r2=924537&view=diff
==============================================================================
--- geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/work/WorkerContext.java
(original)
+++ geronimo/components/txmanager/trunk/geronimo-connector/src/main/java/org/apache/geronimo/connector/work/WorkerContext.java
Wed Mar 17 22:44:22 2010
@@ -27,6 +27,7 @@ import java.util.concurrent.CountDownLat
 import javax.resource.NotSupportedException;
 import javax.resource.spi.work.ExecutionContext;
 import javax.resource.spi.work.WorkContext;
+import javax.resource.spi.work.WorkContextErrorCodes;
 import javax.resource.spi.work.WorkContextProvider;
 import javax.resource.spi.work.TransactionContext;
 import javax.resource.spi.work.Work;
@@ -331,7 +332,7 @@ public class WorkerContext implements Wo
                     }
                 }
                 if (!found) {
-                    throw new WorkCompletedException("Duplicate or unhandled WorkContext:
" + workContext);
+                    throw new WorkCompletedException("Duplicate or unhandled WorkContext:
" + workContext, WorkContextErrorCodes.UNSUPPORTED_CONTEXT_TYPE);
                 }
             }
             for (Iterator<WorkContextHandler> it = workContextHandlers.iterator();
it.hasNext();) {



Mime
View raw message