gpt4 book ai didi

java - 如何将对象从 Corba 客户端传递到 Corba 服务器

转载 作者:行者123 更新时间:2023-11-30 09:29:24 25 4
gpt4 key购买 nike

使用 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();
};

提前致谢

最佳答案

通过 CORBA 在线路上发送的唯一“真实”对象是 ValueType否则可以交换“引用资料”和更多simple structured raw data as "struct" and "union" .

将 CORBA 服务器从一个位置迁移到另一个位置并非易事,也不是直接可行的,但可以通过复杂的部署来实现。

关于java - 如何将对象从 Corba 客户端传递到 Corba 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13641674/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com