[jboss-cvs] JBoss Messaging SVN: r4796 - trunk/src/main/org/jboss/messaging/core/postoffice/impl.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 12 12:53:05 EDT 2008


Author: jmesnil
Date: 2008-08-12 12:53:05 -0400 (Tue, 12 Aug 2008)
New Revision: 4796

Modified:
   trunk/src/main/org/jboss/messaging/core/postoffice/impl/PostOfficeImpl.java
Log:
removed unneeded exception handling

Modified: trunk/src/main/org/jboss/messaging/core/postoffice/impl/PostOfficeImpl.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/postoffice/impl/PostOfficeImpl.java	2008-08-12 16:33:30 UTC (rev 4795)
+++ trunk/src/main/org/jboss/messaging/core/postoffice/impl/PostOfficeImpl.java	2008-08-12 16:53:05 UTC (rev 4796)
@@ -282,20 +282,13 @@
    // Private -----------------------------------------------------------------
    
    private Binding createBinding(final SimpleString address, final SimpleString name, final Filter filter,
-                                 final boolean durable, final boolean temporary)
+                                 final boolean durable, final boolean temporary) throws Exception
    {
       Queue queue = queueFactory.createQueue(-1, name, filter, durable, temporary);
       
       Binding binding = new BindingImpl(address, queue);
       
-      try
-      {
-         managementService.registerQueue(queue, address, storageManager);
-      } catch (Exception e)
-      {
-         e.printStackTrace();
-         throw new IllegalStateException(e);
-      }
+      managementService.registerQueue(queue, address, storageManager);
 
       return binding;
    }




More information about the jboss-cvs-commits mailing list