> -----Original Message----- > From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 4:00 AM > To: [EMAIL PROTECTED] > Subject: Re: Passing TurbineUser info to the database > > > "Quinton McCombs" <[EMAIL PROTECTED]> writes: > > >I have need to pass the username of the person logged into my > >application to the database. The only way that I can see to really > >accomplish this is to call a stored procedure immediately after > >obtaining a pooled connection and calling it again when the > connection > >is released to clear the name. > > So you need the logged in user as the user to connect to the database? >
No. I will still connect to the database with a commons username. I need the username of the current user to pass to a stored proc every time that I get a pooled connection. > Or did I get you wrong? > > Regards > Henning > > > > > >I would need to modify Torque to call my "handler" class after the > >connection is obtained from the pool but before it is returned from > >Torque.getConnection(). The problem is how does the code in > my handler > >class obtain a reference to the current TurbineUser for the > thread??? > >I have been thinking about using java.lang.ThreadLocal inside of my > >handler class to store the current user. I would set the > user inside > >of the session validator. > > >Has anyone else implemented anything like this? Any > thoughts on how I > >am thinking about implementing it? > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH > [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/ > > Java, perl, Solaris, Linux, xSP Consulting, Web Services > freelance consultant -- Jakarta Turbine Development -- hero for hire > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
