The steps in the table below describe the program flow in a typical JMS client:
Step |
Action |
For more information |
---|---|---|
1 |
Define the initial naming context. |
|
2 |
Obtain a connection factory. |
|
3 |
Create a connection. |
|
4 |
Create one or more sessions. |
See “Creating sessions”. |
5 |
Look up message queues and topics. |
|
6 |
Create message producers and consumers. |
|
7 |
Send and receive messages. |
Figure 3-1 illustrates the relationship of the objects in a JMS application.