If you have JNDI you can look it up that way for example Context initialContext = new InitialContext(); DataSource datasource = (DataSource)initialContext.lookup(fDATASOURCE_CONTEXT);
Martin- ----- Original Message ----- From: "Rapthor" <[EMAIL PROTECTED]> To: <users@tomcat.apache.org> Sent: Wednesday, March 29, 2006 4:24 AM Subject: Re: Get JDBCRealm's current user > > Okay, I think I nearly get it. > > What do I have to do to get the DataSource from within a JSP page? Get the > "ServletContext"? There's no method to do a lookup for a DataSource with > ServletContext. > -- > View this message in context: > http://www.nabble.com/Get-JDBCRealm%27s-current-user-t1341315.html#a3646592 > Sent from the Tomcat - User forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >