[Jboss-cvs] JBossAS SVN: r56850 - branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 14 11:20:42 EDT 2006


Author: bill.burke at jboss.com
Date: 2006-09-14 11:20:41 -0400 (Thu, 14 Sep 2006)
New Revision: 56850

Added:
   branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java
   branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java
Log:
backmerge

Added: branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java
===================================================================
--- branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java	2006-09-14 15:16:07 UTC (rev 56849)
+++ branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java	2006-09-14 15:20:41 UTC (rev 56850)
@@ -0,0 +1,19 @@
+package org.jboss.resource.adapter.jms.inflow;
+
+/**
+ * A DefaultRuntimeErrorHandler.
+ * 
+ * @author <a href="weston.price at jboss.com">Weston Price</a>
+ * @version $Revision: 1.1 $
+ */
+public class DefaultRuntimeErrorHandler implements RuntimeErrorHandler
+{
+   public void handleRuntimeError(Throwable t)
+   {
+      
+      if(t instanceof RuntimeException || t instanceof Error)
+         throw (RuntimeException)t;
+        
+   }
+   
+}


Property changes on: branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java
___________________________________________________________________
Name: svn:executable
   + *

Added: branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java
===================================================================
--- branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java	2006-09-14 15:16:07 UTC (rev 56849)
+++ branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java	2006-09-14 15:20:41 UTC (rev 56850)
@@ -0,0 +1,20 @@
+package org.jboss.resource.adapter.jms.inflow;
+
+/**
+ * A RuntimeErrorHandler used to propagate runtime errors from inflow listener. This is primarily used
+ * to support the non-standard behavior of redelivery of non XA messages that throw a runtime exception.
+ * 
+ * @author <a href="weston.price at jboss.com">Weston Price</a>
+ * @version $Revision: 1.1 $
+ */
+public interface RuntimeErrorHandler
+{
+   
+   /**
+    * Determines if an exception is a runtime error. If it is, it simply rethrows the exception.
+    * 
+    * @param t the exception
+    */
+   public void handleRuntimeError(Throwable t);
+   
+}


Property changes on: branches/Branch_4_0/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java
___________________________________________________________________
Name: svn:executable
   + *




More information about the jboss-cvs-commits mailing list