WebSphere WebSphere Application Server Version 6.1.x Feature Pack for Web Services Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

Modifying a message store using command line

Before you begin

These example scripts provide an alternative to using the administrative console.

To run the command, use the AdminTask object of the wsadmin scripting client.

About this task

Perform the following steps to modify the attributes of a message store:

Procedure

  1. Assign your messaging engines a variable name, for example, mengines:
    • Using Jacl:

      set mengines [$AdminConfig list SIBMessagingEngine]
    • Using Jython:
      mengines = AdminConfig.list('SIBMessagingEngine')
  2. Identify the messaging engines whose message store you want to modify, for example, me1 with an index number 0:
    • Using Jacl:

      set me1 [lindex $mengines 0]
    • Using Jython:
      arraymengines = mengines.split(lineSeparator)
      me1 = arraymengines[0]
  3. Assign themessage store of the selected messaging engines a variable name, for example, if you are using a file store, fs:
    • Using Jacl:

      set fs [$AdminConfig showAttribute $me1 fileStore]
    • Using Jython:
      fs = AdminConfig.showAttribute(me1, 'fileStore')
  4. Change the attributes of the file store, for example, its maximum log file size:
    • Using Jacl:

      set result [$AdminConfig showAttribute $fs logSize]
      puts "old logSize: $result"
      
      $AdminConfig modify $fs ((logSize  200))
      
      set result [$AdminConfig showAttribute $fs logSize]
      
      puts " "
      puts "new logSize: $result"
      
      puts "Saving..."
      $AdminConfig save
    • Using Jython:
      AdminConfig.modify(fs, [['logSize', '200']])
      
      AdminConfig.showAttribute(fs, 'logSize')
      
      AdminConfig.save()

Task topic

Terms of use | Feedback


Timestamp icon Last updated: 27 November 2008
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.pmc.wsfep.multiplatform.doc/tasks/tjm_cmd_modify.html

Copyright IBM Corporation 2004, 2008. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)