On Tue, 1 Oct 2002 09:38:48 -0700 (PDT) Thomas Hilbig <[EMAIL PROTECTED]> wrote:

> The recent discussion on sharing (or not!) DBI
> connections among forked/threaded processes leaves me
> wanting to know if there is a well-established method
> for sharing DBI connections among separate processes. 
> While it may be off topic for the DBI list,  I can't
> think of a better use for it than a DBI application
> (such as sharing connections among web/CGI programs).

There isn't.  mod_perl and Apache::DBI allow some connection pooling, but
I'm not sure how it's done.  Discussing DBI handles is definitely on topic.

> I assume the proper way of doing it is using a
> messaging mechanism, but there are probably dozens of
> different methods of doing it with caveats for each. 
> If anyone has solved this in the past, could you
> provide a snippet of the client and server scripts?

If you can get it to work, Tim would be very interested to see how.  There
is a lot of magic going on behind the scenes that doesn't react well to
being passed in a message.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Reply via email to