Friday, March 13, 2009

How does a typical client perform the communication (JMS)

Question :How does a typical client perform the communication? (JMS)
Answer :1. Use JNDI to locate administrative objects.
1a. Locate a single ConnectionFactory object.
1b. Locate one or more Destination objects.
2. Use the ConnectionFactory to create a JMS Connection.
3. Use the Connection to create one or more Session(s).
4. Use a Session and the Destinations to create the MessageProducers and
MessageConsumers needed.
5. Perform your communication.

No comments: