mirror of https://github.com/apache/activemq.git
the useEmbeddedBroker property not needed anymore.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c30a6a81c4
commit
ceeb3a2aa6
|
@ -59,7 +59,6 @@ public class WebClient implements HttpSessionActivationListener, Externalizable
|
|||
public static final String connectionFactoryAttribute = "org.activemq.connectionFactory";
|
||||
public static final String queueConsumersAttribute = "org.activemq.queueConsumers";
|
||||
public static final String brokerUrlInitParam = "org.activemq.brokerURL";
|
||||
public static final String embeddedBrokerInitParam = "org.activemq.embeddedBroker";
|
||||
|
||||
private static final Log log = LogFactory.getLog(WebClient.class);
|
||||
|
||||
|
@ -202,12 +201,8 @@ public class WebClient implements HttpSessionActivationListener, Externalizable
|
|||
brokerURL = "vm://localhost";
|
||||
}
|
||||
|
||||
boolean embeddedBroker = MessageServletSupport.asBoolean(servletContext.getInitParameter(embeddedBrokerInitParam));
|
||||
servletContext.log("Use embedded broker: " + embeddedBroker);
|
||||
|
||||
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(brokerURL);
|
||||
factory.setUseEmbeddedBroker(embeddedBroker);
|
||||
|
||||
connectionFactory = factory;
|
||||
servletContext.setAttribute(connectionFactoryAttribute, connectionFactory);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue