문제

In WebLogic, there's the WLST (WebLogic Scripting Tool) which is similar to WebSphere wsadmin. The nice thing about WLST is that you can import it as a module into other jython code and use it without any dependencies.

Here's link that discusses this: http://ghattus.com/2006/01/06/wlst-as-a-jython-module/

Is the same thing possible with WebSphere wsadmin?

도움이 되었습니까?

해결책

No.

wsadmin is "scripting framework" not originally created with jython in mind. It was intented to be used with TCL. After that it was "abstracted" so that (m)any popular scripting languages can be used inplace of TCL, and only Jython was provided by actual WAS instalation.

Leaving an api desing which is certainly not very pythonic or efficient.

Anyway neither of 5 main objects of wsadmin are python objects, and some of them are even constructed (like source code is being literally created with merging strings) as wsadmin loads.

But you can do something else. wsadmin can be run outside WAS as standalone program. And it can be even upgraded with jython 2.5, so you can run newer python code within wsadmin.

Hope this helps..

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top