4 Replies Latest reply: Apr 18, 2012 7:59 AM by user734247 RSS

    Meaning of WLST script

    user734247
      What does the below WLST online script means?

      connect("UN","PW","Admin url")
      cmo.createManagedserver('MS')
      MS.ListenAddress(xxxxxx)
      MS.ListemPort(xxxxx)

      Options:

      1) Does it mean Admin server created Managed server and Listen address and port?
      or
      2) Does it mean cmo created Managed Server and assigned Listen address and port?

      Please advice.
        • 1. Re: Meaning of WLST script
          Arunbodap-Oracle
          "cmo" immediately after connecting to the admin server represents the DomainRuntimeTree
          [MBeanServerInvocationHandler]com.bea:Name=<DomainName>,Type=Domain
          For example,
          [MBeanServerInvocationHandler]com.bea:Name=ArunBaseDomain1036,Type=Domain

          So, cmo.createManagedserver('MS') means managed server created in the Domain (Domain Tree) and "listen address" and "listen port" are assigned to this managed server.
          This managed server that is created above belongs to the domain managed by the admin server that we have connected to using the connect(...) statement.


          Arun
          • 2. Re: Meaning of WLST script
            user734247
            Thanks for the explanation.

            cmo is current MBean.

            So if a question was asked like below:

            What does the below WLST online script means?
            connect("UN","PW","Admin url")
            cmo.createManagedserver('MS')
            MS.ListenAddress(xxxxxx)
            MS.ListemPort(xxxxx)

            Options:

            1) Does it mean Admin server created Managed server and assigned Listen address and port?
            or
            2) Does it mean cmo created Managed Server and assigned Listen address and port?


            Whaich option should I choose?
            • 3. Re: Meaning of WLST script
              Arunbodap-Oracle
              #1 is the right answer
              1) It means Admin server created Managed server and assigned Listen address and port?


              Arun
              • 4. Re: Meaning of WLST script
                user734247
                Thanks