Skip to content

Commit

Permalink
NO-JIRA Fix NettyConnectorWithHTTPUpgradeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev authored and clebertsuconic committed Mar 24, 2021
1 parent 186481b commit e45c1d9
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -123,12 +123,12 @@ public void setUp() throws Exception {
server.start();

HashMap<String, Object> httpConnectorParams = new HashMap<>();
httpAcceptorParams.put(TransportConstants.HTTP_UPGRADE_ENABLED_PROP_NAME, true);
httpAcceptorParams.put(TransportConstants.PORT_PROP_NAME, HTTP_PORT);
httpConnectorParams.put(TransportConstants.HTTP_UPGRADE_ENABLED_PROP_NAME, true);
httpConnectorParams.put(TransportConstants.PORT_PROP_NAME, HTTP_PORT);
if (useSSL) {
httpAcceptorParams.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
httpAcceptorParams.put(TransportConstants.TRUSTSTORE_PATH_PROP_NAME, CLIENT_SIDE_TRUSTSTORE);
httpAcceptorParams.put(TransportConstants.TRUSTSTORE_PASSWORD_PROP_NAME, PASSWORD);
httpConnectorParams.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
httpConnectorParams.put(TransportConstants.TRUSTSTORE_PATH_PROP_NAME, CLIENT_SIDE_TRUSTSTORE);
httpConnectorParams.put(TransportConstants.TRUSTSTORE_PASSWORD_PROP_NAME, PASSWORD);
}
locator = ActiveMQClient.createServerLocatorWithoutHA(new TransportConfiguration(NETTY_CONNECTOR_FACTORY, httpConnectorParams));
addServerLocator(locator);
Expand Down

0 comments on commit e45c1d9

Please sign in to comment.