2 Replies Latest reply on Feb 16, 2011 8:38 AM by rajasundaram

    LDAP presistance issue

    rajasundaram

      We are using External Context in jboss-service.xml for LDAP. When the LDAP server restarted jboss is not re-establishing the Context again. I use JMX console to stop and start the ExternalContext service manually. Is there any configuration can be used to restart the service when the LDAP restarts. Or can I access ExternalContext mbean on my code to call the stop and start the service?

        • 1. Re: LDAP presistance issue
          ret

          hi,

           

          you can try to write a mbean which starts up with JBoss and start a cyclic check on the context (thread) or try to access with a class sheduled by JBoss (see sheduler, i would prefer this).

          on Exception u can restart the service.

          • 2. LDAP presistance issue
            rajasundaram

            Hi Christian,

             

            Thanks for your suggestion.

             

            Using the code how to restart the service?