deploytool Tips for Components That Send Messages

You set resource references and message destination references for any component that sends messages: a client, a session or entity bean, or even another message-driven bean. For examples, see Chapter 34. In this application, the client is the sending component. To view this example in deploytool, expand the SimpleMessageApp node, and then select SimpleMessageClient from the tree view.

Setting the Resource References

You use the Resource Ref's tabbed pane to specify the connection factory references for the component.

1.
In the tree view, select the component node.
2.
Select the Resource Ref's tab.
3.
Click Add.
4.
In the Coded Name field, enter the name that matches the parameter of the lookup ...

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.