Topic
2 replies Latest Post - ‏2011-11-15T12:29:09Z by ragibson
D429_aditya_vavilala
2 Posts
ACCEPTED ANSWER

Pinned topic Jython Script to change the business space solution management owner

‏2011-09-29T20:55:20Z |
./clusters/FINdev.AppTarget/config-bspace.xml: <businessSpaceInstances xmi:id="BusinessSpaceInstance_1315319670112" id="ID_SOL_MGMT_INST" name="Solution Management" owner="wassecure" templateID="id_SOL_MGMT_TEMP" lastModified="1315319670112"/>

I am trying to write a jython script (wsadmin ofcourse) to change the owner of the business space instance in the cluster shown above. I want to change it from wassecure to was7secure.

I am not looking for a shell script that finds and replaces the string.
Updated on 2011-11-15T12:29:09Z at 2011-11-15T12:29:09Z by ragibson
  • ragibson
    ragibson
    2 Posts
    ACCEPTED ANSWER

    Re: Jython Script to change the business space solution management owner

    ‏2011-11-15T12:28:00Z  in response to D429_aditya_vavilala
    Unfortunately, I don't have Business Space installed.

    Let's start by seeing if we can locate the BusinessSpace configuration id.

    Let's see what business space configuration types exist.
    What output is generated by executing this script?


    for Type in AdminConfig.types().splitlines() :
    if Type.lower().find( 'business' ) > -1 :
    print Type

    • ragibson
      ragibson
      2 Posts
      ACCEPTED ANSWER

      Re: Jython Script to change the business space solution management owner

      ‏2011-11-15T12:29:09Z  in response to ragibson
      Drat, the update lost the indentation.


      for Type in AdminConfig.types().splitlines() :
      \tif Type.lower().find( 'business' ) > -1 :
      \t\tprint Type