The code for DataSourceRealm defers obtaining the db connection from the JNDI named JDBC DataSource until it is used, after the context is started. What you are trying to do should work.
Please post more information about your configuration and any stack traces or errors which get logged.
Glenn
Uros Kotnik wrote:
Hi,
Applyed fix for bug 16316, DataSourceRealm can not find JNDI name in context. Before fix solution was to put JNDI Named DataSource which is used by the DataSourceRealm in the GlobalNamingResources section of your server.xml config and that worked. I thought than now I can left JNDI Named DataSource from GlobalNamingResources and put it in <Context> (or use JNDI Named DataSource that I defined in context) but I still get " Name jdbc is not bound in this Context".
Thanx.
--------------------------------------------------------------------- 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]