Saturday 27 October 2012

WSADMIN OBJECTS


     WSADMIN OBJECTS

  
 There are 5 objects in WSADMIN

    1)  AdminConfig : Save your Configurations
    2) AdminControl : Start and Stop Servers
    3) AdminApp       : Deploy,Remove,Update
    4) AdminTask     : Creation of JDBC,JMS
   5)  Help

  
1) Admin Config : Object used to view and manipulate configuration elements (xml files).
        
      Operations of Admin Config 
       
        • List
        • Create
        • Remove
        • Display
        • Modify
   
Ex: AdminConfig.getid('/cell:cellName/Node:nodeName/Server:serverName/')
          AdminConfig.list('Server'))
          AdminConfig.Save();



2) AdminControl : It is used to manipulate application server objects interacting with ManagedBeans.

---> This object is not available when WSADMIN is used in localmode/host 
----> It is in active runtime Application Server.

  
 Methods of AdminControl :

  1) getCell()
  2) getHost()
  3) getNode()
  4) StartServer()
  5) StopServer()

   Command : AdminControl.invoke(Svr,'restart')



3) Admin App : This object operates on Applications.

    Types of Operations :

  1) Information
  2) Install
  3) UnInstall
  4) Modify

   
Ex: AdminApp.list() : List of deployed Applications
          AdminApp.isAppReady() : Application is ready to execute



4) AdminTask : It is introduced in version 6

----> In this we can create Clusters,Servers,Security related issues will be resolved
----> It will be used dynamically at runtime

   
Ex:    CreateCluster()
          deleteCluster()
          createClusterMember()
          createNodeGroup()
          removeNodeGroup()  
          createApplicationServer()
          createWebServer()
          deleteWebServer()
          showServerInstance()
          listServers()


5) Help : It provides all usage information about all objects

   
Ex:    AdminConfig.help()
          AdminControl.help()
          AdminApp.help()
          AdminTask.help()
          Help.help()
          Help.attributes()
          Help.classname()
          Help.operations()

1 comments:

nayeem said...

Awesome post!

Post a Comment