|
|
|
@ -19,7 +19,6 @@ import com.fr.workspace.Workspace;
|
|
|
|
|
import com.fr.workspace.WorkspaceEvent; |
|
|
|
|
import com.fr.workspace.base.WorkspaceConstants; |
|
|
|
|
import com.fr.workspace.connect.WorkspaceConnectionInfo; |
|
|
|
|
import com.fr.workspace.engine.channel.WorkspaceChannelFactory; |
|
|
|
|
import com.fr.workspace.engine.exception.WorkspaceConnectionException; |
|
|
|
|
|
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
@ -69,7 +68,7 @@ public class RPCConnectHandlerCenter {
|
|
|
|
|
*/ |
|
|
|
|
public static boolean checkRPCConnect(WorkspaceConnectionInfo info) { |
|
|
|
|
try { |
|
|
|
|
return WorkspaceChannelFactory.testConnection(info); |
|
|
|
|
return WorkContext.getConnector().testConnection(info); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e, e.getMessage()); |
|
|
|
|
return false; |
|
|
|
|