I am using Netbeans 6.8 and Glassfish v3.0.
I created an ejb module and created entity classes from a database, and then created a non-bean session with a remote interface. Say for example.
@Remote
public interface customerRemote{
public void add(String name, String address);
public Customer find(Integer id);
}
@Stateless
public class customerBean implements customerRemote{
}
Then I created a new web application. But now, how can I access remote ejb in my web application. I could find a bean named jndi, but I want to know what type of object it will return? How can I cast it to clientRemote? I do not have a class named customerRemote in my web application. So how do I do this? Also, what about a client class of objects? My web application also does not have such a class called Customer. All ejb and entity classes are in a separate ejb module. Please help me: (