1. Overview of Enterprise Server Administration
Default Settings and Locations
Instructions for Administering Enterprise Server
4. Administering the Virtual Machine for the Java Platform
6. Administering Web Applications
7. Administering the Logging Service
8. Administering the Monitoring Service
9. Administering Life Cycle Modules
10. Extending Enterprise Server
Part II Security Administration
11. Administering System Security
12. Administering User Security
13. Administering Message Security
Part III Resources and Services Administration
14. Administering Database Connectivity
15. Administering EIS Connectivity
16. Administering Internet Connectivity
17. Administering the Object Request Broker (ORB)
18. Administering the JavaMail Service
19. Administering the Java Message Service (JMS)
Administering JMS Physical Destinations
To Create a JMS Physical Destination
To List JMS Physical Destinations
To Purge Messages From a Physical Destination
To Delete a JMS Physical Destination
Administering JMS Connection Factories and Destinations
Administering Connection Addressing
Setting JMS Connection Pooling
Configuring Resource Adapters for JMS
To Configure the Generic Resource Adapter
20. Administering the Java Naming and Directory Interface (JNDI) Service
21. Administering Transactions
The JMS API uses two kinds of administered objects. Connection factory objects allow an application to create other JMS objects programmatically. Destination objects serve as repositories for messages. How these objects are created is specific to each implementation of JMS. In Enterprise Server, JMS is implemented by performing the following tasks:
Creating a connection factory
Creating a destination, which requires creating a physical destination and a destination resource that refers to the physical destination
JMS applications use the Java Naming and Directory Interface (JNDI) API to access the connection factory and destination resources. A JMS application normally uses at least one connection factory and at least one destination. By studying the application or consulting with the application developer, you can determine what resources must be created. The order in which the resources are created does not matter.
Enterprise Server provides the following types of connection factory objects:
QueueConnectionFactory objects, used for point-to-point communication
TopicConnectionFactory objects, used for publish-subscribe communication
ConnectionFactory objects, which can be used for both point-to-point and publish-subscribe communications (recommended for new applications)
Enterprise Server provides the following types of destination objects:
Queue objects, used for point-to-point communication
Topic objects, used for publish-subscribe communication
The following topics are addressed here:
The subcommands in this section can be used to administer both the
connection factory resources and the destination resources. For instructions on administering physical destinations, see
Administering JMS Physical Destinations.
For each JMS connection factory that you create, Enterprise Server creates a connector connection pool and connector resource. For each JMS destination that you create, Enterprise Server creates a connector admin object resource. If you delete a JMS resource, Enterprise Server automatically deletes the connector resources.
Use the create-jms-resource command in remote mode to create a JMS connection factory resource or a destination resource.
Tip - To specify the addresslist property (in the format host:mqport,host2:mqport,host3:mqport) for the asadmin create-jms-resource command,
escape the : by using \\. For example, host1\\:mqport,host2\\:mqport,host3\\:mpqport. For more information about using
escape characters, see the
asadmin(1M) concepts page.
To update a JMS connection factory, use the set subcommand for the underlying
connector connection pool, See
To Update a Connector Connection Pool.
To update a destination, use the set subcommand for the admin object resource.
See
To Update an Administered Object.
Ensure that the server is running.
Remote subcommands require a running server.
Create a JMS resource by using the
create-jms-resource(1) command.
Information about the properties for the subcommand is included in this help page.
If needed, restart the server.
Some properties require server restart. See
Configuration Changes That Require Server Restart. If your server needs to be
restarted, see
To Restart a Domain.
This example creates a connection factory resource of type javax.jms.ConnectionFactory whose JNDI name is jms/DurableConnectionFactory. The ClientId property sets a client ID on the connection factory so that it can be used for durable subscriptions. The JNDI name for a JMS resource customarily includes the jms/ naming subcontext.
asadmin> create-jms-resource --restype javax.jms.ConnectionFactory --description "connection factory for durable subscriptions" --property ClientId=MyID jms/DurableConnectionFactory Command create-jms-resource executed successfully.
This example creates a destination resource whose JNDI name is jms/MyQueue.
asadmin> create-jms-resource --restype javax.jms.Queue --property Name=PhysicalQueue jms/MyQueue Command create-jms-resource executed successfully.
You can also view the full syntax and options of the subcommand by typing asadmin help create-jms-resource at the command line.
Use the list-jms-resources subcommand in remote mode to list the existing connection factory and destination resources.
Ensure that the server is running.
Remote subcommands require a running server.
List the existing JMS resources by using the
list-jms-resources(1) subcommand.
This example lists all the existing JMS connection factory and destination resources.
asadmin> list-jms-resources jms/Queue jms/ConnectionFactory jms/DurableConnectionFactory jms/Topic Command list-jms-resources executed successfully
This example lists the resources for the resource type javax.
asadmin> list-jms-resources --restype javax.jms.TopicConnectionFactory jms/DurableTopicConnectionFactory jms/TopicConnectionFactory Command list-jms-resources executed successfully.
You can also view the full syntax and options of the subcommand by typing asadmin help list-jms-resources at the command line.
Use the delete-jms-resource subcommand in remote mode to remove the specified connection factory or destination resource.
Ensure that you remove all references to the specified JMS resource before running this subcommand.
Ensure that the server is running.
Remote subcommands require a running server.
List the existing JMS resources by using the
list-jms-resources(1) subcommand.
Delete the JMS resource by using the
delete-jms-resource(1) subcommand.
This example deletes the jms/Queue resource.
asadmin> delete-jms-resource jms/Queue Command delete-jms-resource executed successfully
You can also view the full syntax and options of the subcommand by typing asadmin help delete-jms-resource at the command line.