I thought for really persistant connections you'd use something like sockets to control a back-and-forth protocol. Something like many (most?) implementations of ODBC.