CORBA object lifetime problems - Mailing list pgsql-interfaces

From Taral
Subject CORBA object lifetime problems
Date
Msg-id 000001be10b5$3ed4a1c0$8a14f7d0@taral.dobiecenter.com
Whole thread Raw
List pgsql-interfaces
There's a problem with implementing CORBA... it was brought up in some docs
I read, but I didn't realize until now that it was important.

Servant objects will be created on the server side in response to queries
from the clients. When should these objects be disposed of? A dispose()
method is good, but what if the client just disappears? We cannot rely on
the proper behavior of the client. (Who knows with the Internet as
unreliable as it is? :)

The best I've thought of so far is to have a thread in the server clean up
old queries that are left behind by accident (shouldn't be too often), and
provide keepalive() and dispose() methods... But how long an interval should
we use?

Also, do we provide query regeneration? Maybe a rerun() on the query result
object? Of course, that requires that we keep the query on the server
side...

Or am I the only one left working on this because the 900+ page CORBA spec
scared everyone else off? *grin*

Taral


pgsql-interfaces by date:

Previous
From: Alexey Lukin
Date:
Subject: CORBA links
Next
From: "Taral"
Date:
Subject: IDL :)