I am starting with EJB and I am having a problem:
I am guided by this tut on youtube - http://www.youtube.com/watch?v=6xJx9hpzkbs (It's in french but it doesn't really matter)
So basically what tut (And me as well) does is, create an EJB project, create stateless Session Bean (MyBean) and a Remote Interface (MyBeanRemote), with one simple method returning a string.
He also creates dynamic web project and uses the following code in a Servlets doGet method to call a bean method:
Context con = new InitialContext();
Object ob = con.lookup("MyBean/remote");
if(ob != null){
MyBeanRemote bean = (MyBeanRemote) ob;
// And then prints out the returned value from the method
}
But the problem is that I have no MyBeanRemote interface avaliable in the client project. how does he get it? (5:17 on Video)