使用Java作为编程语言,我有一个问题,关于如何将对象从Corba客户端发送到Corba服务器,注意到我正在使用POA和以下idl文件: -
// BackupServer.idl
#ifndef BackupServer_idl
#define BackupServer_idl
interface BackupDaemon;
#include "BackupExceptions.idl"
typedef sequence<BackupDaemon> BackupDaemonList;
interface BackupDaemon {
attribute string backupDaemonUser;
attribute string backupDaemonIP;
attribute string backupDaemonHostName;
attribute string backupDaemonBackupType;
attribute string backupDaemonType;
attribute string backupDaemonTime;
attribute string backupDaemonPath;
attribute boolean backupDaemonScheduled;
attribute long backupDaemonPort;
attribute string backupDaemonMacAddress;
typedef sequence<string> BackupPathesStrings;
boolean startBackup(
in BackupPathesStrings backupPathes,
in string backupDaemonMacAddress );
void deleteBackup(
in string backupPathes,
in string backupDaemonMacAddress ) raises (BackupPathNotFoundException);
};
interface BackupServer {
boolean registerBackupDaemon( in BackupDaemon bd )
raises (InvalidBackupDaemonException);
boolean unRegisterBackupDaemon(in string backupDaemonMacAddress)
raises (InvalidBackupDaemonException);
BackupDaemonList getBackupDeamons();
};
提前致谢
答案 0 :(得分:2)
使用CORBA在线路上发送的唯一“真实”对象是ValueType,否则可以交换“引用”并且更多simple structured raw data as "struct" and "union"。
将CORBA服务器从一个位置迁移到另一个位置并非易事,并且不是直接可行的,但可以通过复杂的部署来实现。