Which two statements are correct for making this code work as a stateless session bean…?

Given:
5. public interface MrB1 {
6. public interface MrB2 {
Ajava class is defined as:
11. ©Stateless
12. public class MrBean implements MrB1 ,MrB2 {
Which two statements are correct for making this code work as a stateless session bean,
considering that this session bean is NOT defined in a deployment descriptor and the interfaces
do NOT have annotations? (Choose two.)

Given:
5. public interface MrB1 {
6. public interface MrB2 {
Ajava class is defined as:
11. ©Stateless
12. public class MrBean implements MrB1 ,MrB2 {
Which two statements are correct for making this code work as a stateless session bean,
considering that this session bean is NOT defined in a deployment descriptor and the interfaces
do NOT have annotations? (Choose two.)

A.
Only the inteface for remote usage must be annotated.

B.
The interfaces MrB1 and MrB2 can only be used locally without changing the code.

C.
Both interfaces MrB1 and MrB2 must be annotated to make this a working stateless session
bean.

D.
The interfaces MrB1 and MrB2 can be annotated differently, one with @Local and the other
with @Remote.



Leave a Reply 0

Your email address will not be published. Required fields are marked *