Discussion:
[omniORB] already biund exception is not throws
Manusha Wijekoon
2009-07-02 17:18:29 UTC
Permalink
hi,
im trying to use nameservice to implement distributed mutual exclusion.
What im trying to do is to bind a servant with a predefined name in the
nameservice. If two processes try to bind a same type of servant with same
name, it should throw alreadyboundexception.

the problem im having is, when i try to bind a servant with same name with
in one process, the exception is thrown. but when i try to bind two servants
from two processes, the exception is not thrown.

Can someone explain the reason.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20090702/fb3cb7c8/attachment.htm
Duncan Grisby
2009-07-03 22:37:32 UTC
Permalink
Post by Manusha Wijekoon
im trying to use nameservice to implement distributed mutual exclusion.
What im trying to do is to bind a servant with a predefined name in the
nameservice. If two processes try to bind a same type of servant with same
name, it should throw alreadyboundexception.
the problem im having is, when i try to bind a servant with same name with in
one process, the exception is thrown. but when i try to bind two servants from
two processes, the exception is not thrown.
This is possibly a silly question, but are both processes definitely
using the same naming service? And the same name?

Can you post some example code that demonstrates the problem?

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...