@Remote public interface BeanInterface { void message(); } I compiled these two classes successfully, added them to myapp.ear and deployed them in the GlassFish server.
I wrote a client class, which is as follows: Client Class: (clientpack.BeanClient) ------------------------------------- package clientpack;
public class BeanClient { @EJB private static BeanInterface bInterface;
public static void main(String... args) { bInterface.message(); } }
When I tried to run this from the command line, I got a NullPointerException. Im sure Im missing some step. Could anyone of you please guide me through this?