[Seaside] About DB connections pool

Boris Popov popov at shaw.ca
Fri May 26 14:20:11 UTC 2006

Maurzio Boriani wrote:
> On 2006-05-26 03:20:22 +0200 Boris Popov <popov at shaw.ca> wrote:
>> Give that there isn't such a separation between 'system' and 'seaside 
>> application' this doesn't quite apply. You could define the variable 
>> somewhere else, but that's about it if I understand you correctly.
> may be I found :) I subclassed WAApplication and add it an instance var
> (dbPoll) with its access method (which return a new dbPool if nil).
> This seems to works as expected :)

Doesn't mean its limited to Seaside apps though,

WAApplication allInstances collect: [:ea | ea dbPool]

But like I said, so long as you don't think of it as means of limiting 
the access, localizing these types of the things on a per-application 
basis sounds fine to me.



More information about the Seaside mailing list