exam questions

Exam 1z0-134 All Questions

View all questions & answers for the 1z0-134 exam

Exam 1z0-134 topic 1 question 17 discussion

Actual exam question from Oracle's 1z0-134
Question #: 17
Topic #: 1
[All 1z0-134 Questions]

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.
Show Suggested Answer Hide Answer
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
chrishillinger
3 years ago
Selected Answer: C
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
...
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.

SaveCancel
Loading ...