- --
***
Universität Oldenburg - Department für Informatik
Sebastian Gerdes
PGP/GPG: 0xF50268FF
***
--
View this message in context:
http://www.nabble.com/JDNI-Resource-not-reusable-tp14297571p18889857.html
Sent from the Tomcat - User
pointing it to the directory where your context.xml file
resides.
If this does not work either, you could try to set the fields 'WAR or
Directory URL' or 'XML configurations URL' when deploying your
application using the Tomcat Manager.
Kind regards
Sebastian Gerdes
I'm having problems trying
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
in my context.xml/server.xml I setup a JDNI resource which I access via:
Context newCtx = new InitialContext();
Context envCtx = (Context) newCtx.lookup(java:comp/env);
DirContext ctx = (DirContext) envCtx.lookup(ldap/ox);
I use this context
with the
parameter factory=drfox.logic.DRFoxContextFactory
Now you can access your LDAP via:
Context newCtx = new InitialContext();
Context envCtx = (Context) newCtx.lookup(java:comp/env);
DirContext ctx = (DirContext) envCtx.lookup(ldap/ox);
That's the end of it :)
Kind regards,
Sebastian Gerdes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
im just working on a web application, where I use a LDAP realm for the
authentification and a postgresql resource in my context.xml. Both are
working fine.
Now I need to access the LDAP in my running web application again. I do
not want to