geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyondjusitn <>
Subject Re: Exception in thread "main" java.lang.NullPointerException?
Date Wed, 05 Dec 2007 04:48:20 GMT

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
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:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message