Hello. I'm wrestling with using a DataSourceRealm along with a JNDI DataSource. So far, I have lept the following hurdles:
- Must add mbean descriptor for DataSourceRealm to get it to work - Read the following post from the list archice
http://www.mail-archive.com/[EMAIL PROTECTED]/msg101671.html
and got my configuration working with the following combination of settings in server.xml and web.xml. What I'm trying to do is have a JNDI DataSource *and* Realm defined only within a certain Context. I'd prefer not to globally define my JNDI DataSource (even though I must have ResourceLinks and resource-refs in order to actually use the DataSource from a particular context).
server.xml: (details left out for brevity)
<GlobalNamingResources>
<Resource />
<ResourceParams />
</GlobalNamingResources><Engine>
<!-- Works if I put DataSource Realm in here -->
<Host>
<!-- Works if I put DataSource Realm in here -->
<Context>
<!-- Works if I put DataSource Realm in here -->
</Context>
</Host>
</Engine>Using this configuration (with the Realm defined in any of the aforementioned places), I can successfully authenticate using my database.
However, it appears that you cannot have non-global JNDI resources. Is this accurate?
Thank you everyone for your time.
-chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
