Weblogic 10.3.5: Configure JMS Module on Weblogic Cluster
JMS system resources are configured and stored as modules similar to standard J2EE modules. Such resources include queues, topics, connection factories, templates, destination keys, quota, distributed queues, distributed topics, foreign servers, and JMS store-and-forward (SAF) parameters. You can administratively configure and manage JMS system modules as global system resources.
JMS resources are configured and stored as modules similar to standard J2EE modules. You can administratively configure and manage JMS modules as global system resources.To create a JMS system module:
- If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit.
- In the Administration Console, expand Services > Messaging and select JMS Modules.
- On the Summary of JMS Modules page, click New. Note: Once you create a module, you cannot rename it. Instead, you must delete it and create another one that uses the new name.
- On the Create JMS System Module page:
- In Name, enter a name for the JMS system module.
- In Descriptor File Name, optionally enter a name for module's underlying descriptor file. The system will automatically add a "-jms.xml" extension to this name. If you do not provide a name, a default name will be assigned.
- In Location in the Domain, optionally, enter where you want to place the descriptor for the system module. This location must be relative to the JMS configuration subdirectory of your domain, which is the config/jms subdirectory of the domain directory.
- Click Next to proceed to the targeting page.
- On the Targets page, select the server instance or cluster target on which to deploy the JMS system module, and then click Next.
- On the Add Resources page, indicate whether you want to be able to immediately add resources to this JMS Module after it's created.
- Click Finish. If you chose not to continue adding resources, the JMS module creation is complete, and you are taken to the JMS Modules summary page where you can access the new module to edit it and add resources to it. However, if you chose to continue adding resources, then you are automatically taken to the JMS Modules: Configuration page where you can continue adding resources to the module.
- On the Configuration page, click New above the Summary of Resources table.
- On the Create a New JMS System Module Resource page, select one of the following JMS system resources:
- Connection Factory - defines a set of connection configuration parameters that enable JMS clients to create JMS connections.
- Queue - defines a point-to-point (PTP) destination, which enables one application to send a message to another.
- Topic - defines a publish/subscribe (pub/sub) destination, which enables an application to send a message to multiple applications.
- Distributed Queue - a single set of JMS queues that are accessible as a single, logical topic to a client. The members of the distributed queue are usually distributed across multiple servers within a cluster, with each topic member belonging to a separate JMS server.
- Distributed Topic - a single set of JMS topics that are accessible as a single, logical topic to a client. The members of the distributed topic are usually distributed across multiple servers within a cluster, with each topic member belonging to a separate JMS server.
- Foreign Server - represents a third-party JMS provider that is outside WebLogic Server. It contains information that allows a local server instance to reach a remote JNDI provider, thereby allowing for a number of foreign connection factory and destination objects to be defined on one JNDI directory.
- Quota - controls the allotment of system resources available to destinations.
- Destination Sort Key - defines a sort order for the messages as they arrive on destinations.
- JMS Template - provides an efficient means of defining multiple queues and topics with similar configuration settings.
- SAF Imported Destination - defines a collection of imported SAF (store-and-forward) queues or topics that represent JMS destinations in a remote server instance or cluster.
- Remote SAF Context - specifies the login context that SAF imported destinations use to connect to a remote destination.
- SAF Error Handling - specifies the action to be taken when the SAF service fails to forward messages to a remote destination.
- Click Next. Depending on the type of resource you select, you will be prompted to enter basic information to create the resource.
- Enter the required information for the selected resource:
- For Topic, Queue, Connection Factory, Distributed Topic, Distributed Queue, Foreign Server, and SAF Imported Destination resources, you can optionally click Next to select or configure an appropriate subdeployment. A subdeployment is the mechanism by which targetable JMS module resources (such as queues, topics, and connection factories) are grouped and targeted to a server resource (such as JMS servers, server instances, or cluster). Click Finish to complete the configuration with basic default values.
- For Quota, Template, Destination Key, SAF Remote Context, and SAF Error Handling resources, simply click OK to complete the configuration with basic default values.
- On the Configuration page, you can either:
- Configure subdeployments, security, or notes for the system module.
- Click a configured JMS resource in the Summary of Resources table to modify its default values.
- Click New again to add another JMS resource to the module.
- To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
Not all changes take effect immediately—some require a restart