Re: need help to get Realm information in Tomcat

2006-01-16 Thread Amila Suriarachchi
hi, i am not familiar with the method u have used. but try to access the resource in noramal way we acess the resources. 1. put an resource reference to ur web.xml as follows. ( change the type and name) DB Connection jdbc/TestDB javax.sql.DataSource Container 2. then

Re: need help to get Realm information in Tomcat

2006-01-15 Thread chandra yalla
Hi Mark, Thanks for the replay , i have changed the museadmin.xml file context to mycontext to test the code given below in some site Server server = ServerFactory.getServer(); //Note, this assumes the Container is "Catalina" Service service = server.findService("Catalina"); Engine engi

Re: need help to get Realm information in Tomcat

2006-01-15 Thread Mark Thomas
chandra yalla wrote: > > Hi. > > i have requirement to get Users in LDAP using the realm information give > in my application xml file museadmin.xml ( i have attached this file) museadmin.xml is incorrect. It should start rather than Mark

need help to get Realm information in Tomcat

2006-01-14 Thread chandra yalla
Hi.   i have requirement to get Users in LDAP using the realm information give in my application xml file museadmin.xml ( i have attached this file)   i want to get JNDIRealm information , i will use real object to get information like getConnectionURL etc.  I have seen code give bel