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