+

Search Tips   |   Advanced Search

createWMQQueue command

Use the createWMQQueue command to create a queue type destination for the IBM MQ messaging provider at a specific scope.

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

(iSeries) The wsadmin scripting client is run from Qshell. See topic "Configure Qshell to run WAS scripts".

This command is valid only when it is used with WAS v7 and later application servers. Do not use it with earlier versions.

For a list of the available IBM MQ messaging provider administrative commands, plus a brief description of each command, enter at the wsadmin prompt:

print AdminTask.help('WMQAdminCommands')

For overview help on a given command, enter at the wsadmin prompt:

print AdminTask.help('command_name')

After using the command, save the changes to the master configuration. For example.

AdminConfig.save()

Use the createWMQQueue command to create a IBM MQ messaging provider queue type destination at a specific scope.

We cannot create a IBM MQ messaging provider queue type destination under either of the following conditions:


Target object

The scope of the IBM MQ messaging provider at which the IBM MQ messaging provider queue type destination is to be created.


Required parameters

-name

The administrative name assigned to this IBM MQ messaging provider queue type destination.

-jndiName

The name used to bind this object into WAS JNDI.

-queueName

The name of the IBM MQ queue to use to store messages for the IBM MQ messaging provider queue type destination definition.


Optional parameters

-description

An administrative description assigned to the queue type destination.

-qmgr

The queue manager that hosts the IBM MQ queue.

-persistence

This parameter determines the level of persistence used to store messages sent to this destination.

Enter one of the following case-sensitive values:

  • APP
  • QDEF
  • PERS
  • NON
  • HIGH

The default is APP.

-priority

The priority level to assign to messages sent to this destination.

Enter one of the following values:

  • APP

    (APP is case-sensitive.)

  • QDEF

    (QDEF is case-sensitive.)

  • <A positive integer in the range 0 to 9 (inclusive)>

The default is APP.

-expiry

The length of time after which messages sent to this destination expire and are dealt with according to their disposition options.

Enter one of the following values:

  • APP

    (APP is case-sensitive.)

  • UNLIM

    (UNLIM is case-sensitive.)

  • <Any positive integer>

The default is APP.

-ccsid

The coded character set identifier (CCSID).

The value of this parameter must be a positive integer or blank. See the IBM MQ messaging provider queue and topic advanced properties settings for more details.

The default is 1208.

Leaving this field empty indicates that the default value must be used.

-useNativeEncoding

Specify whether to use native encoding or not. It can take a value true or false.

If it is set to true, the values of the -integerEncoding, -decimalEncoding and -floatingPointEncoding attributes are ignored.

If it is set to false, the encoding is specified by the -integerEncoding, -decimalEncoding and -floatingPointEncoding attributes.

-integerEncoding

The integer encoding setting for this queue.

Enter one of the following case-sensitive values: Normal or Reversed.

The default is Normal.

-decimalEncoding

The decimal encoding setting for this queue.

Enter one of the following case-sensitive values: Normal or Reversed.

The default is Normal.

-floatingPointEncoding

The floating point encoding setting for this queue.

Enter one of the following case-sensitive values: IEEENormal, IEEEReversed, z/OS

The default is IEEENormal.

-useRFH2

This parameter determines whether an RFH version 2 header is appended to messages sent to this destination, also know as targetClient..

Enter one of the following case-sensitive values: true or false (equivalent to JMS or MQ targetClient, respectively)..

Default is true (JMS targetClient).

-sendAsync

This parameter determines whether messages can be sent to this destination without queue manager acknowledging that they have arrived.

Enter one of the following case-sensitive values: YES, NO or QDEF.

The default is QDEF.

-readAhead

This parameter determines whether messages for non-persistent consumers can be read ahead and cached.

Enter one of the following case-sensitive values: YES, NO or QDEF.

The default is QDEF.

-readAheadClose

Specify the read ahead close method for the message consumer.

Enter one of the following case-sensitive values: DELIVERALL, or DELIVERCURRENT.

The default is DELIVERALL.

-customProperties

Specify custom properties to be passed to the IBM MQ messaging provider queue type destination implementation. Typically, custom properties are used to set attributes of the queue type destination that are not directly supported through the WebSphere administration interfaces.

Each custom property is specified using name and value table step parameters. Since these are table steps, the order of the two parameters is fixed, so we must always specify the name first and the value second:

  • In Jython: [name value]
  • In Jacl: {name value}

In the following examples, code blocks beginning with wsadmin> show code that is entered by the user. Lines that do not begin with wsadmin> show code that has been returned by the console.

The following example creates a IBM MQ messaging provider queue type destination.

  • wsadmin AdminTask
  • Start the wsadmin scripting client
  • WMQAdminCommands
  • manageWMQ command
  • migrateWMQMLP command
  • deleteWMQQueue command
  • listWMQQueues command
  • modifyWMQQueue command
  • showWMQQueue command
  • IBM MQ messaging provider queue and topic advanced properties settings
  • Mapping of administrative console panel names to command names and IBM MQ names