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 11:26:11 GMT

Thanks. Yeah, I've done the 5-minute tutorial. I have working web client

What if what I want is an Java EE application client project in the same EAR
project just as my EJB project is in. So it will turn out that my EAR
project has an EJB project, as created in the 5-minutes tutorial, and a
client application client project. Is that possible if I want to use the
EJB's remote method in my application client? If it is, then how?

Thanks again.

Johannes Lietz wrote:
> EJB is meant to run as a service inside JavaEE-Servers to serve e.g. a web
> application inside the server or a number of coupled servers. In general
> you won't expose EJBs directly to a standard java remote client
> application.
> I guess you've done this tutorial already?
> Then you've got your working client already, namely the MyServlet.class!
> If you want to use them with a plain standard Java application (that's
> what
> I think you want to do?), there's not a defined and easy way to do it.
> WebSphere has something like that
> (,
> but I don't know about Geronimo.
> The best way to do what you want to do is to build webservice around your
> EJBs, e.g. with SOAP, RMI or similar technologies.
> -Johannes

Best Wishes!
Justin Tsao
View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message