[omniORB] How can I creat a hot-standby name service?
Mon Jul 22 15:55:01 2002
On Monday 22 July, "zlr" wrote:
> This is a multi-part message in MIME format.
Please don't send HTML mail to the mailing list.
> In our project, we want to install name service and Database in same
> The problem is our database can suppore hot standby. If the Database
> is switch over( the name service also switch over to another PC ), the
> new client will cannot connect to server which is running.
> Who can tell me how can I resolve this problem?
If you are using omniORB 4.0, you can create a reference to the naming
service that contains multiple addresses, with a URI like
"corbaname::email@example.com,:firstname.lastname@example.org". The 1.2
version selection is important, since 1.0 doesn't support the
If you do that, omniORB will transparently fall over to using the
second address if the first one fails (and go back to the first one if
the second one fails, and so on...).
If you want all the NamingContexts within the name service to publish
both addresses, look into the endPointNoPublish option.
In omniORB 3.0, there's no option but to make the applications aware
of the situation and have them retry if they get COMM_FAILUREs.
-- Duncan Grisby --
-- email@example.com --
-- http://www.grisby.org --