Examples

In general: All was5config:xx goals (except the nodesync goal) requires a xml file with input. Have a look at the Properties section to see default path to xml files. A good approach will be to create a working folder with all xml files you need to match the goals you're calling, together with a project.properties file with properties set for washome, host, port, conntype, username and password (as an example). You then run all your goals from this working folder.

For those of you that are familiar with jacl/jython scripting towards WAS, will recognize the xlm element names. They are all equal to the attribute names of the corresponding MBeans in wsadmin. NOTE: the content of the xml file is case-sensitive when it comes to elements and attributes!

Below you will find all the goals with descriptions on target xml file structure and with an example. You'll see a column named "Global" in all tables. This states whether the element can be global or not. The global elements are very convenient to avoid duplications in the xml files (you can set global elements that are used for all sub-elements and override them where neccessary).

NOTE: Scripts does not check for already existing config, so you might get duplicates if they already exist!!

was5config:jaasauthdata

Xml file should have <setup> root-element and can then have one or more <authdata> elements.

<authdata> child elements Element attribute(s) Required Global Default value
alias "name" X - -
userId "name" X - -
password "name" X - -
description "name" - - -
Example file

was5config:jdbc-provider

Xml file should have <setup> root-element and can then have one or more <provider> elements.

<provider> child elements Element attribute(s) Required Global Default value
name "name" X - -
implementationClassName "name" X - -
node "name" - X -
server "name" - X -
description "name" - - -
classpath "name" - - -
nativepath "name" - - -
Example file

was5config:jdbc-datasource

Xml file should have <setup> root-element and can then have one or more <datasource> elements.

<datasource> child elements Element attribute(s) Required Global Default value
providerName "name" X X -
name "name" X - -
node "name" - X -
server "name" - X -
datasourceHelperClassname "name" - X -
authDataAlias "name" - X -
mappingConfigAlias "name" - X DefaultPrincipalMapping
authMechanismPreference "name" - X -
category "name" - X -
statementCacheSize "name" - X 10
jndiName "name" - - -
description "name" - - -
property "name", "type", "value" (all required if property are used) - - -
Example file

was5config:mq-qcf

Xml file should have <setup> root-element and can then have one or more <qcf> elements.

<qcf> child elements Element attribute(s) Required Global Default value
name "name" X - -
jndiName "name" X - -
transportType "name" X X CLIENT
node "name" - X -
server "name" - X -
CCSID "name" - X -
XAEnabled "name" - X true
authDataAlias "name" - X -
authMechanismPreference "name" - X -
category "name" - X -
channel "name" - X -
clientID "name" - X -
host "name" - X -
mappingConfigAlias "name" - X DefaultPrincipalMapping
msgRetention "name" - X true
port "name" - X -
queueManager "name" - X -
tempModel "name" - X -
description "name" - - -
Example file

was5config:mq-queue

Xml file should have <setup> root-element and can then have one or more <queue> elements.

<queue> child elements Element attribute(s) Required Global Default value
name "name" X - -
jndiName "name" X - -
baseQueueName "name" X X -
node "name" - X -
server "name" - X -
CCSID "name" - X -
baseQueueManagerName "name" - X -
category "name" - X -
decimalEncoding "name" - X Normal
expiry "name" - X APPLICATION_DEFINED
floatingPointEncoding "name" - X IEEENormal
integerEncoding "name" - X Normal
password "name" - X -
persistence "name" - X APPLICATION_DEFINED
priority "name" - X APPLICATION_DEFINED
queueManagerHost "name" - X -
queueManagerPort "name" - X 0
serverConnectionChannelName "name" - X -
specifiedExpiry "name" - X 0
specifiedPriority "name" - X 0
targetClient "name" - X JMS
useNativeEncoding "name" - X false
userName "name" - X -
description "name" - - -
Example file

was5config:mq-tcf

Xml file should have <setup> root-element and can then have one or more <tcf> elements.

<tcf> child elements Element attribute(s) Required Global Default value
name "name" X - -
jndiName "name" X - -
transportType "name" X X BINDINGS
node "name" - X -
server "name" - X -
CCSID "name" - X -
XAEnabled "name" - X true
authDataAlias "name" - X -
authMechanismPreference "name" - X -
brokerCCSubQ "name" - X -
brokerControlQueue "name" - X -
brokerPubQueue "name" - X -
brokerQueueManager "name" - X -
brokerSubQueue "name" - X -
brokerVersion "name" - X MA0C
category "name" - X -
channel "name" - X -
clientID "name" - X -
cloneSupport "name" - X false
host "name" - X -
mapping "name" - X DefaultPrincipalMapping
port "name" - X -
queueManager "name" - X -
tempModel "name" - X -
description "name" - - -
Example file

was5config:mq-topic

Xml file should have <setup> root-element and can then have one or more <topic> elements.

<topic> child elements Element attribute(s) Required Global Default value
name "name" X - -
jndiName "name" X - -
baseTopicName "name" X X -
node "name" - X -
server "name" - X -
brokerDurSubQueue "name" - X -
brokerCCDurSubQueue "name" - X -
CCSID "name" - X -
category "name" - X -
decimalEncoding "name" - X Normal
expiry "name" - X APPLICATION_DEFINED
floatingPointEncoding "name" - X IEEENormal
integerEncoding "name" - X Normal
persistence "name" - X APPLICATION_DEFINED
priority "name" - X APPLICATION_DEFINED
specifiedExpiry "name" - X 0
specifiedPriority "name" - X 0
targetClient "name" - X JMS
useNativeEncoding "name" - X false
description "name" - - -
Example file

was5config:listenerport

Xml file should have <setup> root-element and can then have one or more <listenerport> elements.

<listenerport> child elements Element attribute(s) Required Global Default value
name "name" X - -
node "name" X X -
server "name" X X -
connectionFactoryJNDIName "name" X X -
destinationJNDIName "name" X X -
initialState "name" X X START
maxSessions "name" - X 1
maxRetries "name" - X 0
maxMessages "name" - X 1
description "name" - - -
Example file

was5config:namespacebinding

Xml file should have <setup> root-element and can then have one or more <namespacebinding> elements.

<namespacebinding> child elements Element attribute(s) Required Global Default value
name "name" X - -
node "name" X X -
server "name" X X -
nameInNameSpace "name" X - -
type "name" X - -
jndiName "name" For type Indirect - -
providerURL "name" For type Indirect - -
applicationNodeName "name" For type Ejb - -
applicationServerName "name" For type Ejb - -
bindingLocation "name" For type Ejb - SINGLESERVER
ejbJndiName "name" For type Ejb - -
corbanameUrl "name" For type Corba - -
federatedContext "name" For type Corba - false
Example file