Thursday, January 27, 2011

wsadmin - the default with WebSphere Application Sever 8 (Beta)

You have to specify to wsadmin interface that you want to work with jython or you will get jacl. If you are unaware of this, for a while, you run into syntact errors - that can be frustrating.

The right command:
wsadmin -lang jython

Then, the more Java like jython code will start to work.
AdminControl.getNode()

Simple stuff, but can throw you off for 15 minutes if you do not use wsadmin daily.

Of course, you can modify wsadmin.properties file with the following:
com.ibm.ws.scripting.defaultLang=jython

No comments: