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:
Hiram R. Chirino 2005-12-20 21:20:47 +00:00
parent c30a6a81c4
commit ceeb3a2aa6
1 changed files with 0 additions and 5 deletions

View File

@ -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);
}