[jboss-cvs] JBossAS SVN: r59869 - branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Jan 20 01:06:39 EST 2007


Author: weston.price at jboss.com
Date: 2007-01-20 01:06:39 -0500 (Sat, 20 Jan 2007)
New Revision: 59869

Removed:
   branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java
   branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java
Log:
[JBAS-4001] Backport of JCA/JMS adapter to address certain issues in 
old code of using 1PC resource as well as handling redelivery for
BMT/CMT NotSupported listeners.

Deleted: branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java
===================================================================
--- branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java	2007-01-20 06:05:18 UTC (rev 59868)
+++ branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/DefaultRuntimeErrorHandler.java	2007-01-20 06:06:39 UTC (rev 59869)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-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;
-        
-   }
-   
-}

Deleted: branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java
===================================================================
--- branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java	2007-01-20 06:05:18 UTC (rev 59868)
+++ branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jms/inflow/RuntimeErrorHandler.java	2007-01-20 06:06:39 UTC (rev 59869)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-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