Dear All,
I really new to
EJB 3. I try some example code of EJB 3. I found some problem
1. Aboout standart default JNDI naming in, Its look different for each app.server in. Is not it?
in
Jboss for session
context.lookup("shortnameClass/remote");
in sjas for session
context.lookup("fullnameClass/remote");
which one will be use as srandart ans also being asked in SCBCD 5?
2. I try this snippet
package ejb3inaction.example;
import javax.ejb.EJB;
public class HelloUserClient {
@EJB
private static HelloUser helloUser;
public static void main(
String[] args) {
helloUser.sayHello("Curious George");
System.out.println("Invoked EJB successfully .. see server console for output");
}
}
and i got null pointer Exception. Is it because I used Dependency Injection in stand alone aplication in @EJB to inject the bean?
thank's before for all rancher
Mujoko
Never Ending Improvement