geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r560997 - /geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
Date Mon, 30 Jul 2007 14:27:34 GMT
Author: dwoods
Date: Mon Jul 30 07:27:33 2007
New Revision: 560997

URL: http://svn.apache.org/viewvc?view=rev&rev=560997
Log:
GERONIMO-2637 Removed peer and failover transport setup from JMS portlet

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

Modified: geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java?view=diff&rev=560997&r1=560996&r2=560997
==============================================================================
--- geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
(original)
+++ geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/jmsmanager/server/JMSConnectorPortlet.java
Mon Jul 30 07:27:33 2007
@@ -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,10 @@
         }
         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 operation not supported for peer protocol
+        protocols.remove("failover"); // add operation not supported for failover protocol
+        renderRequest.setAttribute("protocols", protocols);
 
         if (WindowState.NORMAL.equals(renderRequest.getWindowState())) {
             normalView.include(renderRequest, renderResponse);



Mime
View raw message