geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmcma...@apache.org
Subject svn commit: r483924 - /geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
Date Fri, 08 Dec 2006 10:48:20 GMT
Author: pmcmahan
Date: Fri Dec  8 02:48:19 2006
New Revision: 483924

URL: http://svn.apache.org/viewvc?view=rev&rev=483924
Log:
GERONIMO-2637 Remove Peer transport setup from JMS portlet in 1.2

Modified:
    geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java

Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java?view=diff&rev=483924&r1=483923&r2=483924
==============================================================================
--- geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
(original)
+++ geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
Fri Dec  8 02:48:19 2006
@@ -17,6 +17,7 @@
 package org.apache.geronimo.console.jmsmanager.server;
 
 import java.io.IOException;
+import java.util.Arrays;
 import java.util.List;
 import java.util.ArrayList;
 import java.net.URI;
@@ -196,7 +197,9 @@
         }
         renderRequest.setAttribute("brokers", getBrokerList(renderRequest, manager));
         renderRequest.setAttribute("connectors", beans);
-        renderRequest.setAttribute("protocols", manager.getSupportedProtocols());
+        ArrayList protocols = new ArrayList(Arrays.asList(manager.getSupportedProtocols()));
+        protocols.remove("peer"); // add operstion not supported for peer protocol
+        renderRequest.setAttribute("protocols", protocols);
 
         if (WindowState.NORMAL.equals(renderRequest.getWindowState())) {
             normalView.include(renderRequest, renderResponse);



Mime
View raw message