[RADIATOR] DB connections in hook code?

Jared Watkins JWatkins at acninc.com
Wed Dec 21 13:41:34 CST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm new to Radiator and am working on my first set of hook code to evaluate it for a project.  I'm taking in call detail records via radius.. enriching them in the PostProcessingHook through a Handler and then storing some of them in a sql database. 

My question is about the environment the hook code runs in.  I know Radiator is multi-threaded... if I open a DB connection within a hook does that connection remain persistent between calls or is it closed and reopened for every packet?  Is the handle shared between threads etc? 

I didn't see anything in the pdf doc that speaks to these sorts of questions. 

Thanks,
Jared

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk7yNm0ACgkQJwJhkeHowkyycACeN5S28eO9A+hutARCfCN6mC1y
K08AnRhCz38aQE8FAJEIugGeXXfH8pj5
=Atm2
-----END PGP SIGNATURE-----


More information about the radiator mailing list