Skip to main content
Summary CORBA servers that export persistent objects must be registered with the Orbix locator daemon using its implementation repository. Through the implementation repository, a locator daemon can locate persistent objects on any server in its domain. A server can also be configured for automatic activation, if necessary, through a node daemon that runs on each domain host.
Article Number 26441
Environment Orbix 6.3 All Supported Operating Systems
Question/Problem Description How to register Orbix 6 persistent CORBA servers with the Orbix locator daemon for on-demand activation?
Clarifying Information A persistent CORBA server is one whose ORB contains persistent POAs. All persistent POAs must be registered in the implementation repository of that server’s location domain.

After registration of persistent servers in the implementation repository, servers and clients use this repository transparently.

Error Message
Defect/Enhancement Number
Cause
Resolution itadmin commands let you update and view data in the implementation repository. You can issue these commands manually from the command line or the itadmin command shell, or automatically through an application setup
script. You can execute these commands from any host that belongs to the location domain.

Registration of a persistent server is a three-step process:

1. Register the server process for on-demand activation

itadmin process create lets you register a process with a location domain for on-demand activation. When a locator daemon receives an invocation for an object whose server process is inactive, it contacts the node daemon that is registered for that process, which activates the process.

The following example registers the my_app server process with the oregon node daemon:

itadmin process create -node_daemon iona_services.node_daemon.oregon -pathname "d:/bin/myapp.exe" -startupmode on_demand -args "training.persistent.my_server -ORBname my_app.server_orb" my_app

2. Register the ORB that runs in that process

After you register a server process, associate it with the name of the ORB that it initializes, using itadmin orbname create. This name must be the same as -ORBname argument that you supply the server during startup.

The following command associates the registered process, my_app, with the my_app.server_orb ORB:

itadmin orbname create -process my_app my_app.server_orb
 
3. Register POAs that run in the ORB

After you register a server process and its ORB, register all persistent POAs and their ancestors (whether persistent or transient) using itadmin poa create. Persistent POAs must be registered with the ORB name in which they run.

The following command registers the banking_service/account/checking persistent POA and its immediate ancestors banking_service/checking and banking_service with the my_app.server_orb ORB:

itadmin poa create -orbname my_app.server_orb banking_service
itadmin poa create banking_service/account -transient
itadmin poa create -orbname my_app.server_orb banking_service/account/checking
Workaround
Notes

For further information please see:
Orbix Administrator's Guide, Chapter "Managing Persistent CORBA Servers".

http://supportline.microfocus.com/productdoc.aspx (Select CORBA Mainframe and Orbix 6 Product)

Attachment
Created date: 10 November 2011
Last Modified: 13 February 2013
Last Published: 14 March 2012
First Published date: 10 November 2011

#KnowledgeDocs
#Orbix