Sample Questions Best site for GRE, LSAT, SAT, GMAT, TOEFL, CCNA, CCSA and interview sample questions  

Technical Sample Questions : C |  C++ |  Oracle |  Java | Unix |  Operating Systems |  Data Structure

Java Sample Questions ›› Java Messaging Service Sample Questions

Technical Java Sample Questions : Java Messaging Service Sample Questions

  1. How does a typical client perform the communication?

    Answer: The following are steps:

    • Use JNDI to locate administrative objects.
    • Locate a single ConnectionFactory object.
    • Locate one or more Destination objects.
    • Use the ConnectionFactory to create a JMS Connection.
    • Use the Connection to create one or more Session(s).
    • Use a Session and the Destinations to create the MessageProducers and MessageConsumers needed.
    • Perform your communication.

  2. Give an example of using the point-to-point model.

    Answer: The point-to-point model is used when the information is specific to a single client. For example, a client can send a message for a print out, and the server can send information back to this client after completion of the print job.

  3. How does the Application server handle the JMS Connection?

    Answer: It handles it in the following way:

    • 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 spawns the JMS session.
    • Applications written by Application programmers creates the message listener.

« Previous

Java Messaging Service Sample Question Number : 1-10| 11-20| 21-30| 31-40| 41-50| 51-53
Sample Test Questions
GRE Sample Questions
CAT Sample Questions
GMAT Sample Questions
TOEFL Sample Questions
ACT Sample Questions
SAT Sample Questions
LSAT Sample Questions
PSAT Sample Questions
MCAT Sample Questions
PMP Sample Questions
GED Sample Questions
ECDL Sample Questions
DMV Sample Questions
CCNA Sample Questions
MCSE Sample Questions
Network+ Sample Questions
A+ Sample Questions
Technical Sample Questions
WASL Sample Questions
CISA Sample Questions

Other Sample Questions
Sample Interview Questions
Sample Teacher Interview Questions
Sample Citizenship Questions
Accuplacer Sample Questions
Science Bowl sample Questions
Driving Test Sample Questions
Sample Survey Questions Sample Essay Questions
Sample Behavioral Interview Questions

Copyright © 2004-2013, Best BSQ. All Rights Reserved.