Example: Configuring WAS Queue and Topic connection factories and destination factories for application clients
The purpose of this article is to help you configure WAS Queue connection factory, WAS Topic connection factory, WAS Queue destination factory, and WAS Topic destination factory settings.
- Required fields:
- JMS Provider Properties page: name
- WAS Queue Connection Factory Properties page: name, jndiName and node
- WAS Topic Connection Factory Properties page: name, jndiName, node and port
- WAS Queue Factory Properties page: name, jndiName, node, persistence, priority and expiry
- WAS Topic Factory Properties page: name, jndiName, topic name, persistence, priority and expiry
- Special cases:
- The port value must be QUEUED or DIRECT.
- The CCSID must be a numerical value between -2417483648 and 2417483647.
- The persistence value must be APPLICATION_DEFINED, PERSISTENT, or NONPERSISTENT.
- The priority value must be APPLICATION_DEFINED, or SPECIFIED.
- The expiry value must be APPLICATION_DEFINED, UNLIMITED, or SPECIFIED.
- On the WAS Topic Factory Properties, and the WAS Queue Factory Properties pages, the specified priority entry field must be an integer between 0 and 9, if the priority value is set to SPECIFIED .
- On the WAS Topic Factory Properties, and the WAS Queue Factory Properties pages, the specified expiry entry field must be a value greater than 0 if expiry is set to SPECIFIED.
- Example:
<resources.jms:JMSProvider xmi:id="JMSProvider_2" name="WebSphere JMS Provider" description="wasJMSProvider:description" externalInitialContextFactory="wasJMSProvider:contextfactoryclass" externalProviderURL="wasJMSProvider:providerURL"> <classpath>wasJMSProvider:classpath</classpath> <factories xmi:type="resources.jms.internalmessaging:WASQueueConnectionFactory" xmi:id="WASQueueConnectionFactory_1" name="wasQCF:name" jndiName="wasQCF:jndiName" description="wasQCF:description" userID="wasQCF:user" password="{xor}KD4sDhwZZSosOi0=" node="wasQCF:Node"> <propertySet xmi:id="J2EEResourcePropertySet_8"> <resourceProperties xmi:id="J2EEResourceProperty_8" name="wasQCF:customName" value="wasQCF:customValue"/> </propertySet> </factories> <factories xmi:type="resources.jms.internalmessaging:WASTopicConnectionFactory" xmi:id="WASTopicConnectionFactory_1" name="wasTCF:name" jndiName="wasTCF:jndiName" description="wasTCF:description" userID="wasTCF:user" password="{xor}KD4sCxwZZTE+Mjo=" node="wasTCF:node" port="QUEUED" clientID="wasTCF:clientId"> <propertySet xmi:id="J2EEResourcePropertySet_9"> <resourceProperties xmi:id="J2EEResourceProperty_9" name="wasTCF:customName" value="wasTCF:customValue"/> </propertySet> </factories> <factories xmi:type="resources.jms.internalmessaging:WASQueue" xmi:id="WASQueue_1" name="wasQ:name" jndiName="wasQ:jndiName" description="wasQ:description" node="wasQ:node" persistence="APPLICATION_DEFINED" priority="SPECIFIED" specifiedPriority="1" expiry="SPECIFIED" specifiedExpiry="1"> <propertySet xmi:id="J2EEResourcePropertySet_10"> <resourceProperties xmi:id="J2EEResourceProperty_10" name="wasQ:customName" value="wasQ:customValue"/> </propertySet> </factories> <factories xmi:type="resources.jms.internalmessaging:WASTopic" xmi:id="WASTopic_1" name="wasT:name" jndiName="wasT:jndiName" description="wasT:description" topic="wasT:topicName" persistence="APPLICATION_DEFINED" priority="SPECIFIED" specifiedPriority="1" expiry="SPECIFIED" specifiedExpiry="1"> <propertySet xmi:id="J2EEResourcePropertySet_11"> <resourceProperties xmi:id="J2EEResourceProperty_11" name="wasT:customName" value="wasT:customValue"/> </propertySet> </factories> <propertySet xmi:id="J2EEResourcePropertySet_12"> <resourceProperties xmi:id="J2EEResourceProperty_12" name="wasJMSProvider:customName" value="wasJMSProvider:customValue"/> </propertySet> </resources.jms:JMSProvider>