[Seaside] About DB connections pool

Boris Popov boris at deepcovelabs.com
Wed May 24 17:45:48 UTC 2006

Create a class variable called 'Default' on PGConnectionsPool, then

PGConnectionsPool class>>default

 ^Default ifNil: [Default := self new].

then use "PGConnectionsPool default" every time you need to access it from
anywhere you wish.



DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Maurzio
Sent: Wednesday, May 24, 2006 10:44 AM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] About DB connections pool

Hi all,
	I've written a class named PGConnectionsPoll, which is (as name say 
:) ) a
connection pool 'manager' for postgres. It has a method named 'query' 
find a 'free' connection  in pool and use it to return a result 
dictionary and then
release used connection.

	How it's possible to instance it only one time in my seaside web app
and use it (the instance, not class) from every component ?

thanks in advance for reply.


Maurizio Boriani
GPG key: 0xCC0FBF8F
  => E429 A37C 5259 763C 9DEE  FC8B 5D61 C796 CC0F BF8F <=

Seaside mailing list
Seaside at lists.squeakfoundation.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3370 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20060524/49bd30aa/smime.bin

More information about the Seaside mailing list