[hornetq-commits] JBoss hornetq SVN: r8850 - trunk/src/main/org/hornetq/integration/transports/netty.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jan 27 11:25:14 EST 2010


Author: jmesnil
Date: 2010-01-27 11:25:14 -0500 (Wed, 27 Jan 2010)
New Revision: 8850

Modified:
   trunk/src/main/org/hornetq/integration/transports/netty/NettyAcceptor.java
Log:
fix protocol configuration

* upper case the value read from the configuration to ensure it matches one of the ProtocolType values

Modified: trunk/src/main/org/hornetq/integration/transports/netty/NettyAcceptor.java
===================================================================
--- trunk/src/main/org/hornetq/integration/transports/netty/NettyAcceptor.java	2010-01-27 16:24:10 UTC (rev 8849)
+++ trunk/src/main/org/hornetq/integration/transports/netty/NettyAcceptor.java	2010-01-27 16:25:14 UTC (rev 8850)
@@ -190,7 +190,7 @@
       String protocolStr = ConfigurationHelper.getStringProperty(TransportConstants.PROTOCOL_PROP_NAME,
                                                        TransportConstants.DEFAULT_PROTOCOL,
                                                        configuration);
-      protocol = ProtocolType.valueOf(protocolStr);
+      protocol = ProtocolType.valueOf(protocolStr.toUpperCase());
       
       host = ConfigurationHelper.getStringProperty(TransportConstants.HOST_PROP_NAME,
                                                    TransportConstants.DEFAULT_HOST,



More information about the hornetq-commits mailing list