Hello list.

I fought with that for about two weeks recently and had done it, so my JNDIRealm works. But! Now servlet that just gets a connection from JNDI resource and tries to query database is broken! Situation is that:

...
<GlobalNamingResource>
<Resource ... />
<ResourceParams>
...
</ResourceParams>
</GlobalNamingResource>
...
<Context>
<ResourceLink ... />
<Realm ... />
</Context>
...

works with JNDIRealm, but not with common servlet getting resource from JNDI, and

...
<Context>
<Resource ... />
<ResourceParams>
...
</ResourceParams>
<Realm ... />
</Context>
...

works with servlet but not with JNDIRealm! It's only two options to have a resource in JNDI -- define it inside GlobalNamingResource or inside Context , and each of it works separately but not simultaneously.

Any advice/suggestion/RTFM link will be GREATELY appreciated because I'm really want to know what's going on "behind the scene" to not ask such a stupid questions again.

Thanks a lot.

--
Veniamin Fichin <[EMAIL PROTECTED]>
Programmer at http://www.rbcsoft.ru/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to