ruby - DRb: how to check if remote object exists? -


i've been toying around drb use solution communicate across multiple processes. i'm using stardard process: 1 creates service, registers druby uri, , on other process drbobject created referencing uri. far good. let's kill first process. every subsequent method call on remote object culminate in econnrefused exception. fair. isn't there way see if drbobject indeed registered in given uri? think testing forcing econnrefused on every instance start see if exists bit silly.

of course, other solutions involving resources other drb welcome, provided indeed represent plus.

you should check out zeromq. more complex set drb handles presence/reconnection issues transparently.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -