Card 4 / 59: Which of the following are applicable annotations to a session bean (EJB 3) :
A)
@Entity
B)
@Stateless
C)
@Stateful
D)
@WebService
E)
@OneToOne
Answer:
B) @Stateless
C) @Stateful
D) @WebService
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
@Stateless and @Stateful are used to annotate a session bean (not an entity bean)
@WebService is also valid (but only to a stateless session bean), and it is used to expose an instance of the session bean as a web service
|