WebLogic 10.3.5.0 リリースで wlst を使用すると、次のような状況に戸惑い、答えを期待しています。
サーバーに接続するための標準の wlst コマンドが与えられた場合
connect('weblogic','welcome1','t3s://localhost:7002')
ドメイン内の AdminServer に期待どおりに接続し、次のプロンプトが表示されます。
Connecting to t3s://localhost:7004 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.
wls:/base_domain/serverConfig>
ただし、次のコマンドを実行すると
import wlstModule as wlst
wlst.connect('weblogic','welcome1','t3s://localhost:7002')
次の応答が得られます
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.
wls:/offline>
私が持っている状況は、AdminServer を接続するための共通モジュールがあり、接続が成功している間、serverRuntimeConfig() などを要求することを中心に展開する他の機能は、接続されていないと見なされるため機能しません。
接続に2番目のアプローチを使用するための正しいメカニズムと、インポートされたwlstModuleを使用するときに接続状態を保持するために他に何が必要かについて、誰かが考えていますか?