Minor rename of variable names

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@405404 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-05-09 12:05:55 +00:00
parent 2391cb0d17
commit c4b11a6396
1 changed files with 7 additions and 6 deletions

View File

@ -64,8 +64,9 @@ import edu.emory.mathcs.backport.java.util.concurrent.Semaphore;
public class WebClient implements HttpSessionActivationListener, HttpSessionBindingListener, Externalizable {
public static final String webClientAttribute = "org.apache.activemq.webclient";
public static final String connectionFactoryAttribute = "org.apache.activemq.connectionFactory";
public static final String connectionFactoryPrefetch = "org.apache.activemq.connectionFactory.prefetch";
public static final String connectionFactoryOptimizeAck = "org.apache.activemq.connectionFactory.optimizeAck";
public static final String connectionFactoryPrefetchParam = "org.apache.activemq.connectionFactory.prefetch";
public static final String connectionFactoryOptimizeAckParam = "org.apache.activemq.connectionFactory.optimizeAck";
public static final String brokerUrlInitParam = "org.apache.activemq.brokerURL";
private static final Log log = LogFactory.getLog(WebClient.class);
@ -238,14 +239,14 @@ public class WebClient implements HttpSessionActivationListener, HttpSessionBind
ActiveMQConnectionFactory amqfactory = new ActiveMQConnectionFactory(brokerURL);
// Set prefetch policy for factory
if (servletContext.getInitParameter(connectionFactoryPrefetch) != null) {
int prefetch = Integer.valueOf(servletContext.getInitParameter(connectionFactoryPrefetch)).intValue();
if (servletContext.getInitParameter(connectionFactoryPrefetchParam) != null) {
int prefetch = Integer.valueOf(servletContext.getInitParameter(connectionFactoryPrefetchParam)).intValue();
amqfactory.getPrefetchPolicy().setAll(prefetch);
}
// Set optimize acknowledge setting
if (servletContext.getInitParameter(connectionFactoryOptimizeAck) != null) {
boolean optimizeAck = Boolean.valueOf(servletContext.getInitParameter(connectionFactoryOptimizeAck)).booleanValue();
if (servletContext.getInitParameter(connectionFactoryOptimizeAckParam) != null) {
boolean optimizeAck = Boolean.valueOf(servletContext.getInitParameter(connectionFactoryOptimizeAckParam)).booleanValue();
amqfactory.setOptimizeAcknowledge(optimizeAck);
}