1 Reply Latest reply on Feb 12, 2003 11:12 AM by juhalindfors

    how to access user service??

    nimrod

      i use jboss3.04 integrated tomcat4.12

      I configured the user-service.xml like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server>




      and the Jboss startup correctly.

      i write a JSP like this to access the QuartzService:


      ....

      Context context = new InitialContext();
      Object obj = context.lookup("QuartzService");

      .....

      when i access the JSP in browser, the exception show me "javax.naming.NameNotFoundException: QuartzService not bound"

      but i use this url:http://localhost/jmx-console/index.jsp,can see that:user
      service=QuartzService,name=QuartzService

      so why?

        • 1. Re: how to access user service??

          MBeans do not automatically bind proxies to the naming service. Try using the MBean server directly instead, or if you're in a different VM, the RMIAdaptor (which binds itself to the JNDI under jmx/rmi/RMIAdaptor)