Loading...
 

CX_CORBA_MANAGER::SetProject

CX_CORBA_MANAGER::SetProject

Description:

Registers the local instance with the previous name in the transferred project with the Corba Namingservice (the middle part of the schema "ClassiX"/<Project>/"RemoteMsg"/<Name>). The Parent Naming Context ("ClassiX") and the name of the interface ("RemoteMsg") are completed internally. If the new name differs from the previous one, the old name binding is removed. If you want to register a name that is identical to an existing name, you can either overwrite the existing name binding or keep it. The project will be created if it does not yet exist.

A status code is returned indicating which operations have been performed. Where the value

0 that the desired name has been successfully registered and the old name of this instance has been removed,

-1 that an old bond existed which was retained,

-2 that the desired name was registered, but removing the old name failed.

Other return values indicate an error after which it is unclear how the naming service was modified.

Code example:

Var(CM)

GetManager(CORBA) -> CM

"ClassiX2" 0 CM Call(SetProject)

Stack
Stack Position Object type Brief description
Stack(In) Top INTEGER 1 if a colliding existing bond is to be overwritten, otherwise 0
Top 1 STRING Desired project in the CORBA naming service.
Stack(Out) Top INTEGER A status code.
Function call: Call(SetProject)