[baseten-users] Portable Distributed Objects
Tuukka Norri
tuukka.norri at karppinen.fi
Mon Jun 15 03:31:04 EEST 2009
Hi!
Daniel Brajkovic kirjoitti 14.6.2009 kello 12.33:
> Well I dug into the source code a bit. What about if the vended
> object was an instance PGTSConnection or PGTSConnector?
> I'm not an programming expert, but from I can make out it's one of
> those two classes that make the ACTIAL connection to the database. I
> have yet to find where either of them are intansiated.
Having PGTSConnection as the vended object could make a difference,
since result sets from PostgreSQL are read only once. (It is
instantiated in a subclass of BXPGTransactionHandler.) We might want
to change some parts related to it soon, though. Now that I think of
it, the simplest solution might be to just write a proxy for
BXDatabaseObject and cache values as they become available, if you
want to use DO. Handling row values is relatively simple, you just
need to cope with KVO.
Not wanting subscribers to your company network through VPN is
completely understandable, but what about setting up another VPN for
them? I'm not sure if it's easier, but I don't have so much experience
with DO as to recommend using it.
--
Best regards,
Tuukka Norri
MK&C
More information about the baseten-users
mailing list