activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r405404 - /incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java
Date Tue, 09 May 2006 12:06:00 GMT
Author: aco
Date: Tue May  9 05:05:55 2006
New Revision: 405404

URL: http://svn.apache.org/viewcvs?rev=405404&view=rev
Log:
Minor rename of variable names

Modified:
    incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java

Modified: incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java?rev=405404&r1=405403&r2=405404&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java
(original)
+++ incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/WebClient.java
Tue May  9 05:05:55 2006
@@ -64,8 +64,9 @@
 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 @@
             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);
             }
 



Mime
View raw message