manveen 02/04/25 20:51:59 Modified: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector DeleteConnectorAction.java Log: DIsplay all connectors in the list but avoid deletion by the connector not being selectable for deletion. Revision Changes Path 1.3 +5 -10 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/DeleteConnectorAction.java Index: DeleteConnectorAction.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/DeleteConnectorAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- DeleteConnectorAction.java 26 Apr 2002 02:13:48 -0000 1.2 +++ DeleteConnectorAction.java 26 Apr 2002 03:51:58 -0000 1.3 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/DeleteConnectorAction.java,v 1.2 2002/04/26 02:13:48 manveen Exp $ - * $Revision: 1.2 $ - * $Date: 2002/04/26 02:13:48 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/DeleteConnectorAction.java,v 1.3 2002/04/26 03:51:58 manveen Exp $ + * $Revision: 1.3 $ + * $Date: 2002/04/26 03:51:58 $ * * ==================================================================== * @@ -95,7 +95,7 @@ * The <code>Action</code> that sets up <em>Delete Connectors</em> transactions. * * @author Manveen Kaur - * @version $Revision: 1.2 $ $Date: 2002/04/26 02:13:48 $ + * @version $Revision: 1.3 $ $Date: 2002/04/26 03:51:58 $ */ public class DeleteConnectorAction extends Action { @@ -182,12 +182,7 @@ Iterator items = mBServer.queryNames(new ObjectName(pattern), null).iterator(); while (items.hasNext()) { - // do not display the connector that the admin tool runs on - // as this should not be allowed to be deleted from the admin tool - String adminPort = Integer.toString(request.getServerPort()); - ObjectName nextObj = (ObjectName) items.next(); - if (!(nextObj.getKeyProperty("port")).equalsIgnoreCase(adminPort)) - list.add(nextObj.toString()); + list.add(items.next().toString()); } } catch (Exception e) { getServlet().log
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>