This closes #92 Deprecating property

This commit is contained in:
Clebert Suconic 2015-07-22 11:54:18 +01:00
commit 1cb372bcd8
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,8 @@ public class TransportConstants
public static final String USE_INVM_PROP_NAME = "useInvm";
/** @deprecated use PROTOCOLS_PROP_NAME */
@Deprecated
public static final String PROTOCOL_PROP_NAME = "protocol";
public static final String PROTOCOLS_PROP_NAME = "protocols";

View File

@ -100,7 +100,7 @@ public abstract class StompV11TestBase extends ActiveMQTestBase
protected JMSServerManager createServer() throws Exception
{
Map<String, Object> params = new HashMap<String, Object>();
params.put(TransportConstants.PROTOCOL_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
params.put(TransportConstants.STOMP_CONSUMERS_CREDIT, "-1");
TransportConfiguration stompTransport = new TransportConfiguration(NettyAcceptorFactory.class.getName(), params);