I'm struggling a bit with setting up a resource factory for
DirContext's.
I have a ContextPool class that has an empty constructor and setter
methods for the params I want to set.
I preferrably want to use this resource factory on a per-web-application
level. Can I do that? The reason is that different web applications uses
different providerURL's, and this leads to connections to different LDAP
servers.
If I set this up on a web application level; Should I use
resource-ref-env or resource-ref? And why can't I use init-param to set
the parameters?
If I need to set this up in the server.xml file, is there still a way of
defining this on a Context level? What syntax do I use to specify a
resource factory in the server.xml file?
Lastly; is there no way of using initCtx.lookup("java:comp/env/blabla")
in a realm class?
--
- Torgeir