0 Replies Latest reply: Mar 5, 2013 11:52 AM by 994948 RSS

    Setting property on a managed instance from jython script

    994948
      Hi,

      We have a script that gets generated to start out managed instance of a server which has a custom property (myapplication.release) set up at deploy time.
      I want to generate the script with an incremental value assigned to myapplication.release, which I can do, I just don't know how I can override my existing myapplication.release value in weblogic.
      I've looked at set() but that didn't seem to work

      Script:


      connect('user','password','localhost:7001')
      edit()
      startEdit()
      cd('/')
      newPort = 7003

      serverList = 'server_name'.split(',')
      for serverName in serverList:
      managedServer = cmo.lookupServer(serverName)
      if managedServer is not None:
      start(serverName)

      activate(block='true')