Can an EJB bean implement multiple user defined interfaces, except business interfaces (@Local, @Remote) or No-Interface view (@LocalBean)?
For example define two interfaces UserInterface1
, UserInterface2
, with no annotation.
Is this legal to implement:
@Stateless
public class MyBean implements UserInterface1, UserInterface2 { ...
Then I have another confusion:
@Stateless
public class MyBean implements Runnable { ...
//inside I won't try to manage thread
}
Is this legal or illegal, I found that glassfish support this situation.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…