You have a multithreaded application that looks up the WebLoqic JMS ConnectionFactory object from the JNDI tree.
Which statement is correct in this scenario? (Choose the best answer.)
Correct Answer: B
Explanation/Reference:
A connection factory supports concurrent use, enabling multiple threads to access the object simultaneously.
A session and its message producers and consumers can only be accessed by one thread at a time (i.e.
the access must be synchronized). Their behavior is undefined if multiple threads access them simultaneously.
Incorrect Answers:
A, E: A connection factory supports concurrent use, enabling multiple threads to access the object simultaneously.
C, D: A session and its message producers and consumers can only be accessed by one thread at a time.
Their behavior is undefined if multiple threads access them simultaneously.
Reference: http://docs.oracle.com/cd/E12840_01/wls/docs103/jms/fund.html