JMS Question and Answers

5. How does the application server handle the JMS Connection?
 
  • App server creates the server session and stores them in a pool.
  • Connection consumer uses the server session to put messages in the session of the JMS.
  • Server session is the one that spawn the JMS session.
  • Applications written by the Application programmers creates the message listener.
 
Your Name Your Email-ID
Your Answer
6. How does a Typical Client perform the Communication?
 
  • Use JNDI to locate administrative objects.
  • Locate a single Connection Factory object.
  • Locate one or more Destination objects.
  • Use the Connection Factory to create a JMS Connection.
  • Use the Connection to create one or more Session(s).
  • Use a Session and the Destinations to create the Message Producers and Message Consumers needed.
  • Perform your communication.
 
Your Name Your Email-ID
Your Answer
12 Page 2 of 2