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.}
A.
@Resource(type=Topic. class)
B.
@Resource(name=”topicRef) private static Topic topic;
C.
©ResourceprivateTopic topic;
D.
@Resource(name=”topicRef’, type=Topic. class)