activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r418311 - /incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
Date Fri, 30 Jun 2006 15:28:15 GMT
Author: chirino
Date: Fri Jun 30 08:28:15 2006
New Revision: 418311

URL: http://svn.apache.org/viewvc?rev=418311&view=rev
Log:
Support a destinationOptions servlet parameter that configures the destination options used
on a destination

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

Modified: incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java?rev=418311&r1=418310&r2=418311&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
(original)
+++ incubator/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
Fri Jun 30 08:28:15 2006
@@ -56,10 +56,13 @@
     private boolean defaultMessagePersistent = true;
     private int defaultMessagePriority = 5;
     private long defaultMessageTimeToLive = 0;
+    private String destinationOptions;
 
     public void init(ServletConfig servletConfig) throws ServletException {
         super.init(servletConfig);
 
+        destinationOptions = servletConfig.getInitParameter("destinationOptions");
+        
         String name = servletConfig.getInitParameter("topic");
         if (name != null) {
             defaultTopicFlag = asBoolean(name);
@@ -289,7 +292,11 @@
         }
         else 
             is_topic=isTopic(request);
-             
+        
+        if( destinationOptions!=null ) {
+            destinationName += "?" + destinationOptions;
+        }
+        
         if (is_topic) {
             return client.getSession().createTopic(destinationName);
         }



Mime
View raw message