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 engine = (Engine) service.getContainer();
Host host = (Host) engine.findChild(engine.getDefaultHost());
//Note, this assumes your context is "myContext"
Context context = (Context) host.findChild("myContext");
Realm realm = context.getRealm();
   
  above code is not working , i am not able to get service object.
   
  I tried also with context before changing it in to mycontext , can you tell 
how to access the LDAP information give in real from my application xml file. i 
need this information in my servlet to get all the users in the LDAP and 
display in the JSP.
   
  Thanks and Regards,
  Chandra
   
  

Mark Thomas <[EMAIL PROTECTED]> wrote:
  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

docBase="${catalina.home}/webapps/museadmin" debug="0" privileged="true">

rather than

docBase="${catalina.home}/webapps/museadmin" debug="0" privileged="true">

Mark


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

  


                
---------------------------------
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
whatever.

Reply via email to