3 Replies Latest reply on Nov 13, 2012 2:28 AM by xin.zhang.song

    A question about client command

    xin.zhang.song

      Hi All

       

      I met a question about client command. I have no idea for it.

       

      I have a lookup element in the config file

      <subsystem xmlns="urn:jboss:domain:naming:1.1">
                  <bindings>
                      <lookup name="java:/bv/bv_framework/ejb/GenseqHome" lookup="java:jboss/exported/bvf/bv_com_ejb/GenseqHome!com.broadvision.genseq.ejb.GenseqHome"/>
                  </bindings>
      </subsystem>
      

       

      I need to determine whether the node exists.

      if this element exists, I will remove this element and then I will add the same name lookup element, just the lookup value will change.

      when I run add lookup element, there are some error messages in the console.

       

      13:59:31,303 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 18) JBAS014612: Operation ("add") failed - address: ([

          ("subsystem" => "naming"),

          ("binding" => "java:/bv/bv_framework/ejb/AlertDbEJB")

      ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.bv.bv_framework.ejb.AlertDbEJB is already registered

              at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

       

      Is there some commands about do unregistered function?

       

      Xin