Upload
anonymous-uhyf8qlli
View
6
Download
0
Embed Size (px)
DESCRIPTION
Ejb
Citation preview
EJB
EJB1@Stateful or @Stateless or @Singelton@Remote(MyInterface.class) or @Local(MyInterface.class)Class MyClass implements MyInterface(){}
Or Anotate Interface@Remote 0r @LocalInterface MyInterface(){}
@Stateful or @Stateless or @SingeltonClass MyClass implements MyInterface(){}
EJB 3.1No Interface required. Container dynamically identifies and loads business method for EJB using annotation
@StatefulEjb or @StatelessEjb or @SingeltonEjbClass MyClass implements MyInterface(){}
Clent Side@Resource & @EJB ( Dependency Injection EJB 3.0)Container will use JNDI to inject instance of Resource or EJB
2