Hello,
I am preparing for SCBCD. I have a doubt in regards to the question below. I was choosing B and D. Please correct me if I am wrong. I would appreciate if someone could shed some light on this.
public interface B1 {}
public interface B2 {}
A
java class is defined as:
@Stateless
public class Bean implements B1 ,B2
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 interface for remote usage must be annotated.
B - The interfaces B1 and B2 can only be used locally without changing the code.
C - Both interfaces B1 and B2 must be annotated to make this a working stateless session bean.
D - The interfaces B1 and B2 can be annotated differently, one with @Local and the other with @Remote.
regards,
Ravi
SCJP, SCWCD5, SCBCD5, SCDJWS
IBM Certified Websphere 6.1 Core Admin
IBM Certified SOA Solution Designer
SCEA Part 1