Tuesday 27 March 2012

AdminApp object in wsadmin scripting


The AdminApp object allows application objects to be manipulated -- this includes installing, uninstalling, editing, and listing. With the application already installed, the AdminApp object can update application metadata, map virtual hosts to Web modules, and map servers to modules. You must perform any other changes, such as specifying a library for the application to use or setting session management configuration properties, using the AdminConfig object.

 Most of the commands supported by AdminApp operate in two modes: the default mode is one in which AdminApp communicates with the WebSphere server to accomplish its tasks.  A local mode is also possible, in which no server communication takes place.  The local  mode of operation is invoked by bringing up the scripting client with no server connected using the command line "-conntype NONE" option or setting the "com.ibm.ws.scripting.connectionType=NONE" property in the wsadmin.properties.

To see a list of all available commands for the AdminApp object:
Print  AdminApp.help()

Methods in AdminApp

Name
Description
deleteUserAndGroupEntries

Deletes all the user/group information for all  the roles and all the user name/password information for RunAs roles for a given application
Edit
Edit the properties of an application
editInteractive
Edit the properties of an application interactively
Export
Export application to a file
exportDDL      
Export DDL from application to a directory
exportFile     
Export content of a single file from an application to a file
getDeployStatus
Returns the combined Deployment status of the application
help           
Show help information
install        
Installs an application, given a file name and an option string.
installInteractive
Installs an application in interactive mode, given a file name and an option string
isAppReady     
Checks whether the application is ready to be run
list           
List all installed applications
listModules     
List the modules in a specified application
options      
Shows the options available, for a given file, application,or in general.
publishWSDL    
Publish WSDL files for a given application
searchJNDIReferences
List application that refer to the given JNDIName on a given node
taskInfo
Shows detailed information pertaining to a given install task for a given file
uninstall
Uninstalls an application, given an application name and an option string
Update
Updates an installed application
updateAccessIDs
Updates the user/group binding information with accessID from user registry for a given application
updateInteractive
Updates an installed application interactively
View
View an application or module,given an application or module name

Example
print AdminApp.list("WebSphere:cell=myCell,node=myNode,server=myServer")

DefaultApplication
PlantsByWebSphere
SamplesGallery
ivtApp
query

No comments:

Post a Comment