Then, how can I make it to access the remote EJB interface in my application
client? I would really appreciate if you could write an step-by-step
tutorial to me, of course use eclipse and Geronimo. I'm totally desperate
now. 
Thanks a lot!

Johannes Lietz wrote:
> 
> 
> Simply said: You can't just add a main method to an EJB class and expect
> it
> to run in the same way as it would inside an application server.
> 
> You need the whole infrastructure an application server provides, which
> does a lot of things behind the scenes. In your class, the server would
> "magically" instantiate an object for your member remoteBusinessIntf,
> which
> will do a sayHello(). In your case remoteBusinessIntf is null, and the
> error is thrown.
> 
> -Johannes
> 
> 
> 
> 


-----
--
Best Wishes!
Justin Tsao
-- 
View this message in context: 
http://www.nabble.com/Exception-in-thread-%22main%22-java.lang.NullPointerException--tf4943169s134.html#a14165282
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.

Reply via email to