[jboss-cvs] JBossAS SVN: r58675 - trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 24 21:06:51 EST 2006


Author: weston.price at jboss.com
Date: 2006-11-24 21:06:50 -0500 (Fri, 24 Nov 2006)
New Revision: 58675

Removed:
   trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java
   trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java
Modified:
   trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/JmsServerSession.java
Log:
Removed useless RuntimeErrorHandler being that it is no longer relevant.

Deleted: trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java	2006-11-24 23:58:01 UTC (rev 58674)
+++ trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java	2006-11-25 02:06:50 UTC (rev 58675)
@@ -1,19 +0,0 @@
-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;
-        
-   }
-   
-}

Modified: trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/JmsServerSession.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/JmsServerSession.java	2006-11-24 23:58:01 UTC (rev 58674)
+++ trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/JmsServerSession.java	2006-11-25 02:06:50 UTC (rev 58675)
@@ -75,10 +75,7 @@
    
    /** Any DLQ handler */
    DLQHandler dlqHandler;
-   
-   /** The runtimeHandler */
-   RuntimeErrorHandler runtimeHandler = new DefaultRuntimeErrorHandler();
-   
+      
    TransactionDemarcationStrategy txnStrategy;
    
    

Deleted: trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java	2006-11-24 23:58:01 UTC (rev 58674)
+++ trunk/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java	2006-11-25 02:06:50 UTC (rev 58675)
@@ -1,20 +0,0 @@
-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);
-   
-}




More information about the jboss-cvs-commits mailing list