users@glassfish.java.net

calling an EJB from a app-client

From: <glassfish_at_javadesktop.org>
Date: Sun, 13 May 2007 18:57:23 PDT

is there some kind of law that says this has to go in the class with the main method???

@EJB
private static NumberEntityFacadeRemote numberEntityFacade;

because when its in the class with the main method, it works fine, but if i move it over to the class where i need to use it, i get a nullpointer exception

Cheers,
     Derek Knapp
[Message sent by forum member 'kingsob' (kingsob)]

http://forums.java.net/jive/thread.jspa?messageID=216685