JMS Connection Factories
JMSconnection factories are objects that allow an application to create other JMS objects
programmatically.These administered objects implement the ConnectionFactory,
QueueConnectionFactory,and TopicConnectionFactory interfaces. Using the Enterprise
ServerAdmin Console, you can create, edit, or delete a JMS Connection Factory. The creation
ofa new JMS connection factory also creates a connector connection pool for the factory and a
connectorresource.
Tomanage JMS connection factories using the command-line utility, use
create-jms-resource,list-jms-resources,ordelete-jms-resourcecommand.
JMS Destination Resources
JMSdestinations serve as the repositories for messages. Using the Admin Console, you can
create,modify or delete JMS Destination Resources. To create a new JMS Destination Resource,
selectResources >JMS Resources >Destination Resources. In the Destination Resources page,
youcan specify the following:
JNDIName for the resource. It is a recommended practice to use the naming subcontext
prexjms/ for JMS resources. For example: jms/Queue.
Theresource type, which can be javax.jms.Topic or javax.jms.Queue.
Additionalproperties for the destination resource. For more details about all these settings
andthe additional properties, refer to the Admin Console Online Help.
Tomanage JMS destinations using the command-line utility, use create-jms-resource,or
delete-jms-resourcecommand.
Tip– To specify the addresslist property (in the format
host:mqport,host2:mqport,host3:mqport)for asadmin create-jms-resource command,
escapethe : by using \\. For example, host1\\:mqport,host2\\:mqport,host3\\:mpqport.
Formore information on using escape characters, see the asadmin(8) man page.
JMS PhysicalDestinations
Forproduction purposes, always create physical destinations. During the development and
testingphase, however, this step is not required. The rst time that an application accesses a
destinationresource, Message Queue automatically creates the physical destination specied by
theName property of the destination resource. The physical destination is temporary and
expiresafter a period specied by a Message Queue conguration property.
JMSPhysicalDestinations
Chapter4 • Conguring Java Message Service Resources 65