Wednesday, October 26, 2011

Helpful WLST Commands (Windows OS)


Open the WLST Prompt
Open command prompt and cd to weblogic server domain
Set the required classpaths by executing the setDomainEnv.cmd from domain/bin folder
java weblogic.WLST

Connect to the server
connect(‘username’, ‘password’,’AdminServer’)
This will connect to the server running on localhost:7001 by default, optionally these parameters can also be passed.

List applications including shared libraries
listApplications()

Deploy commands for shared library
deploy('shared-library-name',path='JAR/WAR/EAR full path', libraryModule='true')


Deploy commands for application
deploy('application-name',path='Application full path', libraryModule='false')

Undeploy applications/shared libraries
undeploy(‘application-name/shared-lib-name’)

Help command
help(), help('commandName')

Exit command
exit()

Disconnect command
disconnect()

No comments: