Author: rob.stryker(a)jboss.com
Date: 2012-06-21 05:05:13 -0400 (Thu, 21 Jun 2012)
New Revision: 42138
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXProvider.java
Log:
JBIDE-12216 commit a to trunk
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXProvider.java 2012-06-21
09:04:16 UTC (rev 42137)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXProvider.java 2012-06-21
09:05:13 UTC (rev 42138)
@@ -112,9 +112,11 @@
}
public boolean accept(IServer server) {
- return (server.getServerType() != null &&
+ boolean preconditions = (server.getServerType() != null &&
server.loadAdapter(JBossServer.class, new NullProgressMonitor()) != null
&& server.getServerState() == IServer.STATE_STARTED);
+ IConnectionWrapper connection =
JBossJMXConnectionProviderModel.getDefault().getConnection(server);
+ return preconditions && connection.isConnected();
}
public void perform(final IServer server) {
Show replies by date