Oracle
1Z0-860 · Question #285
A developer writes a stateful session bean called FooBean. Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level environment dependency on a JMS Topic? 11. public…
The correct answer is D. @Resource(name="topicRef', type=Topic. class). See the full explanation below for the reasoning.
Question
A developer writes a stateful session bean called FooBean. Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level environment dependency on a JMS Topic? 11. public class FooBean { 12. 13. public void fooQ {} 14. 15.}
Exhibit
Options
- A@Resource(type=Topic. class)
- B@Resource(name="topicRef) private static Topic topic;
- C©ResourceprivateTopic topic;
- D@Resource(name="topicRef', type=Topic. class)
How the community answered
(30 responses)- A7% (2)
- B13% (4)
- C3% (1)
- D77% (23)
Community Discussion
No community discussion yet for this question.
