WebSphere

Enabling the event service using scripting

You can enable the event service by running an AdminTask administrative command using the wsadmin tool.

About this task

If the event service is enabled, it automatically starts when the server starts.

To enable the event service using the wsadmin tool:

Procedure
  1. Start the wsadmin tool.
  2. Use the AdminTask object to run the enableEventService administrative command:
    • Using Jacl:
      # enable event service at server scope
      $AdminTask enableEventService { -nodeName node1 -serverName server1 }
      
      # enable event service at cluster scope
      $AdminTask enableEventService  { -clusterName cluster1 }
    • Using Jython:
      # enable event service at server scope
      AdminTask.enableEventService('[ -nodeName node1 -serverName server1 ]')
      
      # enable event service at cluster scope
      AdminTask.enableEventService('[ -clusterName cluster1 ]')
    The parameters of the enableEventService command are as follows:
    nodeName
    The name of the node where the event service should be enabled. This is an optional parameter; the default value is the current node. If you specify a node name, you must also specify a server name. Do not specify a node if you are enabling the event service in a cluster.
    serverName
    The name of the server where the event service should be enabled. This parameter is required if you specify a node name. Do not specify a server name if you are enabling the event service in a cluster.
    clusterName
    The name of the cluster where the event service should be enabled. This parameter is required if you are enabling the event service in a cluster.
  3. Restart the server.

task Task topic

Terms of use | Feedback


Timestamp icon Last updated: 22 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic/com.ibm.websphere.cei.620.doc/doc/tcei_enable_server_script.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).