Java Message Service (JMS) event handlers are used to trigger events or to collect information
for reporting purposes.
Create New JMS Connection Factory
A JMS client uses a connection factory to connect to a JMS provider. Follow these
directions to create a new JMS connection factory.
- From the JMS screen, click Commands > New Connection Factory.
The Enter the Connection Factory details screen appears.
- In the Connection Factory Name field, type a unique name for the
connection factory.
- In the JNDI Provider URL field, type the web address for the service
provider. (JNDI is Java Naming and Directory Interface)
- In the JNDI Initial Context Factory field, type the initial context
name.
- From the Deployment Id drop-down list, select an ID. This is
optional.
- Click the Save button. The JMS screen appears with the
connection factory listed.
Refresh Connection Factory
If you add information or the server is shut down, you need to refresh the connection
factories. To refresh the factories, click Commands > Refresh. The connection
factories are refreshed.
Add Destination
A destination object specifies the message target the the JMS client produces and the
message source the JMS client receives. In Connect, the destination accepts a
Request Queue and a Response Queue.
Follow these directions to create a destination.
- From the JMS screen, click Actions > Add Destination on the
row with the connection factory you want. The Please enter the
information for the requst and response queues screen appears.
- In the Destination Name field for the Request Queue and the
Response Queue, type a unique name for each.
- In the Username field for each queue, type the appropirate user
name.
- In the Password field for each queue, type the appropriate
password.
- Click the Save button. The JMS screen appears.
To view the Destinations you added, click the arrow beside the appropriate
connection factory. The row expands to display the destinations.
Edit Connection Factory
Follow these directions to edit a connection factory.
- From the JMS screen, click Actions > Edit on the row with the connection
factory you want to edit. The Enter the Connection Factory details screen
appears.
- Make your changes.
- Click the Save button. The JMS screen appears.
Delete Connection Factory
Follow these directions to delete a connection factory.
- From the JMS screen, click Actions > Delete on the row with
the connection factory you want to delete. A confirmation dialog box
appears.
- In the confirmation dialog box, click OK. The connection factory is
removed from the list.
Note:
If a connection factory has destinations, you cannot delete the connection
factory.
Edit Destination
Follow these directions to edit a destination.
- Click the arrow beside the appropriate connection factory. The row expands
to display the destinations.
- Click Actions > Edit for the destination pair you want to edit. The
Please enter the information for the request and response queues
screen appears.
- Make your changes.
- Click the Save button. The JMS screen appears.
Delete Destination
Follow these directions to delete a destination.
- Click the arrow beside the appropriate connection factory. The row expands
to display the destinations.
- Click Actions > Delete for the destination pair you want to delete. A
confirmation dialog box appears.
- In the confirmation dialog box, click OK. The destination is
removed.