[hornetq-commits] JBoss hornetq SVN: r11969 - trunk/hornetq-jms/src/main/java/org/hornetq/jms/client.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jan 5 06:32:37 EST 2012


Author: borges
Date: 2012-01-05 06:32:36 -0500 (Thu, 05 Jan 2012)
New Revision: 11969

Modified:
   trunk/hornetq-jms/src/main/java/org/hornetq/jms/client/HornetQConnectionFactory.java
Log:
FIX *throw* the instantiated exception.

Modified: trunk/hornetq-jms/src/main/java/org/hornetq/jms/client/HornetQConnectionFactory.java
===================================================================
--- trunk/hornetq-jms/src/main/java/org/hornetq/jms/client/HornetQConnectionFactory.java	2012-01-05 11:28:33 UTC (rev 11968)
+++ trunk/hornetq-jms/src/main/java/org/hornetq/jms/client/HornetQConnectionFactory.java	2012-01-05 11:32:36 UTC (rev 11969)
@@ -32,7 +32,6 @@
 import org.hornetq.api.core.client.HornetQClient;
 import org.hornetq.api.core.client.ServerLocator;
 import org.hornetq.api.jms.JMSFactoryType;
-import org.hornetq.core.logging.Logger;
 import org.hornetq.jms.referenceable.ConnectionFactoryObjectFactory;
 import org.hornetq.jms.referenceable.SerializableObjectRefAddr;
 
@@ -45,16 +44,8 @@
  */
 public class HornetQConnectionFactory implements Serializable, Referenceable
 {
-   // Constants ------------------------------------------------------------------------------------
-
    private final static long serialVersionUID = -2810634789345348326L;
 
-   private static final Logger log = Logger.getLogger(HornetQConnectionFactory.class);
-
-   // Static ---------------------------------------------------------------------------------------
-
-   // Attributes -----------------------------------------------------------------------------------
-
    private final ServerLocator serverLocator;
 
    private String clientID;
@@ -65,8 +56,6 @@
 
    private boolean readOnly;
 
-   // Constructors ---------------------------------------------------------------------------------
-
    public HornetQConnectionFactory()
    {
       serverLocator = null;
@@ -681,7 +670,7 @@
 
       if (connection == null)
       {
-         new JMSException("Failed to create connection: invalid type " + type);
+         throw new JMSException("Failed to create connection: invalid type " + type);
       }
       connection.setReference(this);
 



More information about the hornetq-commits mailing list