|
Configuring resources
In general, it's preferable to configure resources in an application server instead of doing all the coding yourself. A Java Message Service (JMS) service is one such resource. JMS is a messaging standard that lets EJB components create, send, receive, and read messages. To configure a JMS provider on a WebLogic server, you must follow a few steps:
1. Create a persistence store -- a physical repository for storing data related to the system.
2. Create a JMS server -- a container that manages queues and topics.
3. Configure JMS resources, such as queues and topics, as JMS modules.
4. Create a sub-deployment -- a mechanism that groups JMS resources and binds them to the JMS server.
5. Create JMS resources -- queues, topics, and connection factories. Queues and topics are destinations that a client can specify as the target or the source, respectively, of the produced or consumed messages. A connection factory is used to connect to a JMS server.
Next, add the persistent store, JMS server, and the JMS modules to the config.xml file in the domain-home/config directory. Put the JMS resources into a separate file located in the domain-home/config/jms directory. This file contains the provided JNDI names. If you use OC4J, you must add the JMS resources to the jms.xml file located in the oc4j-home/config directory. |
|