Configure the message listener service
The message listener service provides JMS message listeners that are used by message driven beans (MDBs). These listeners are associated with a queue connection factory and a queue or with a topic connection factory a topic, depending on the JMS messaging model that the listener uses. You must configure the message listener service before you install MDB application components.
For help with the message listener service and listener port settings, see these topics:
These sections describe how to administer the message listener service:
- Configure listener ports
- Modify listener ports
- Remove listener ports
- Start listener ports
- Stop listener ports
To configure a new listener port, follow these steps:
- Start the administrative console.
- In the topology tree, expand Servers and click Application Servers.
- On the Application Servers page, click the name of the application server for which you want to configure a listener port.
- On the application server's detail page, click Message Listener Service --> Listener Ports.
- On the Listener Ports page, click New.
- Specify a name, initial state, connection factory JNDI name, and destination JNDI name for the listener port. You can also specify optional properties on this page.
- Click OK.
- Save the configuration.
To modify a listener port, follow these steps:
- Start the administrative console.
- In the topology tree, expand Servers and click Application Servers.
- On the Application Servers page, click the name of the application server for which you want to modify a listener port.
- On the application server's detail page, click Message Listener Service --> Listener Ports.
- On the Listener Ports page, click the name of the listener port that you want to modify.
- Make your changes.
- Click OK.
- Save the configuration.
To remove a listener port, follow these steps:
- Start the administrative console.
- In the topology tree, expand Servers and click Application Servers.
- On the Application Servers page, click the name of the application server for which you want to remove a listener port.
- On the application server's detail page, click Message Listener Service --> Listener Ports.
- On the Listener Ports page, select the checkbox for the listener port that you want to remove.
- Click Delete.
- Save the configuration.
When you start a listener port is started, the listener manager tries to start the listener for each MDB associated with the port.
- If an MDB is running, the listener manager starts the listener port and the listener for the MDB.
- If an MDB is not running, the listener manager starts the listener port, but does not start the listener for the MDB.
- If you start an MDB after starting the associated listener port, the listener for the MDB is also started.
After you start a listener port, the listeners for message driven beans associated with the port can retrieve messages. To start a listener port, follow these steps:
- Start the administrative console.
- In the topology tree, expand Servers and click Application Servers.
- On the Application Servers page, click the name of the application server for which you want to start a listener port.
- On the application server's detail page, click Message Listener Service --> Listener Ports.
- On the Listener Ports page, select the checkbox for the listener port that you want to start.
- Click Start.
To stop a listener port, follow these steps:
- Start the administrative console.
- In the topology tree, expand Servers and click Application Servers.
- On the Application Servers page, click the name of the application server for which you want to stop a listener port.
- On the application server's detail page, click Message Listener Service --> Listener Ports.
- On the Listener Ports page, select the checkbox for the listener port that you want to stop.
- Click Stop.