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.)
A.
It is not permitted. A multithreaded application cannot access the ConnectionFactory object.
B.
The access to ConnectionFactory object MUST be synchronized.
C.
The ConnectionFactory object can be referenced in a multithreaded application without any special considerations.
D.
Multiple threads trying to use the ConnectionFactory object simultaneously will throw an exception.
E.
In a multithreaded scenario, connection objects cannot be safely created from the ConnectionFactory.
Suggested Answer:B🗳️
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
According to the posted link it should be C as per the following quote:
"A connection factory supports concurrent use, enabling multiple threads to access the object simultaneously"
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.1z0-134 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
chrishillinger
3 years ago