【问题标题】:Problems with retargeting apps in weblogic在 weblogic 中重定向应用程序的问题
【发布时间】:2017-10-19 16:30:03
【问题描述】:

我在 weblogic 中部署了 2 个应用程序:

app1: target1, target2
app2: target3

为了将 target2 分配给 app2,我执行下一个 wlst 命令:

connect('user', 'password', 't3://admin-address:admin-port')
undeploy("app1", targets="target2")
disconnect()
readDomain('domain-dir')
assign("AppDeployment","app2","Target","target2")
updateDomain()
closedomain()

没有错误,但只有从 target2 取消部署 app1 有效。有人可以帮忙吗?

【问题讨论】:

    标签: oracle weblogic weblogic12c wlst


    【解决方案1】:

    最终的解决方案是:

    connect('user', 'password', 't3://<admin_server>:<admin_port>')
    
    # remove target from the first application
    edit()
    startEdit()
    cd('/AppDeployments/app1')
    set('Targets',jarray.array([ObjectName('com.bea:Name=target1,Type=Server')], ObjectName))
    activate()
    exit()
    
    # add target to the second application
    edit()
    startEdit()
    cd('/AppDeployments/app2')
    set('Targets',jarray.array([ObjectName('com.bea:Name=target2,Type=Server'), ObjectName('com.bea:Name=target3,Type=Server')], ObjectName))
    activate()
    exit()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-17
      • 1970-01-01
      • 2015-07-24
      • 1970-01-01
      • 1970-01-01
      • 2021-10-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多