Hello Web applications gain access to Globally Named JDBC Resources <GlobalNamingResources> by adding a <ResourceLink> to context.xml
Then using code like: Context initContext = new InitialContext(); dbLookupStr = "java:comp/env/" + dbResourceName; ds = (DataSource)initContext.lookup(dbLookupStr); HOW CAN code in a custom Realm gain access to one of those same Globally named database connection pools ? ####### Extra info included here for background: I have a custom realm that I created by extending JDBCRealm it does its own authentication and uses JDBCRealm's getRoles() to do the authorization. Although it works much of the time, the inherited getRoles method causes problems. I've decided to re-write my realm without extending JDBCRealm, thus I need to write my own JDBC authorization code, hence the above question. Thanks in advance Vince ________________________________ This e-mail is for the sole use of the intended recipient and contains information that may be privileged and/or confidential. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments. Certain required legal entity disclosures can be accessed on our website.<http://thomsonreuters.com/prof_disclosures/>