[英]How to pass an object from Corba Client to Corba Server
使用 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否則“引用”可能會被交換,並且更簡單的結構化原始數據為“struct”和“union” 。
將 CORBA 服務器從一個位置遷移到另一個位置並非易事,也不是直接可行的,但可以通過復雜的部署來實現。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.