|
Home TOC Index |
|
Search
Feedback |
deploytool Tips for JMS Clients
For more information on JMS clients, please see the Java Message Service Tutorial:
h
ttp://java.sun.com/products/jms/tutorial/index.htmlSetting the Resource References
- In the tree view, select the client's node.
- Select the Resource Refs tab.
- Click Add.
- In the Coded Name field, enter the name that matches the parameter of the
lookupmethod in the client's code. For example, if thelookupparameter isjava:comp/env/jms/MyQueueConnectionFactory, the Coded Name should bejms/QueueConnectionFactory.- In the Type field, select the connection factory class that matches the destination type.
- In the Authentication field, in most cases you will select Container. You would select Application if your code explicitly logs on to the messaging service.
- In the Sharable field, make sure the checkbox is selected. This choice allows the container to optimize connections.
- Enter strings in the User Name and Password fields. The authentication service of the J2EE SDK will prompt you for these fields when you run the client.
Setting the Resource Environment References
- Select the Resource Env. Refs tab.
- Click Add.
- In the Coded Name field, enter a name that matches the parameter of the
lookupcall that locates the queue or topic. For example, if thelookupparameter isjava:comp/env/jms/QueueName, the Coded Name should bejms/QueueName.- In the Type field, select the class that matches the destination type.
Specifying the JNDI Names
- In the tree view, select the application's node.
- Select the JNDI Names tab and enter the appropriate names. For example, the
SimpleMessageAppdiscussed in this chapter uses the JNDI names shown in Table 7-1.
|
Home TOC Index |
|
Search
Feedback |