geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: jndi lookup in remote client for geronimo v2
Date Fri, 14 Sep 2007 19:37:33 GMT

On Sep 14, 2007, at 10:48 AM, vrm wrote:

>
> I'm having the exact same issue. I've spent 2 days looking around  
> and there
> is no examples or documentations available for a Remote openejb client
> accessing an EJB on Geronimo 2.
>
> Anybody have an EAR for Geronimo2 and an Openejb-Client app  
> accessing it?
>
> The Exception I get =
> javax.naming.NameNotFoundException: /TheBean does not exist in the  
> system.
> Check that the app was successfully deployed.
>
> I've tried the following for InitialContext.lookup =
> (artifactid)/(TheBean)/(TheInterface)
> (artifactid)/(Interface)
> (ejbBean)/(Interface)
> (artifactid)/(TheBean)/(Full Path to Interface)
> ...and many more variations of this
>
>
> My EJB Interface =
>
> @Remote
> public interface TheInterface {
>
>
> My Bean =
> @Stateless
> public class TheBean implements TheInterface {
>
>
> Anybody get this to work or have examples, please post.

I have an example here:

http://people.apache.org/~dblevins/tmp/examples/

Works in 2.0.1.  You deploy the prebuilt SimpleApp-1.0.jar, then you  
can run the EchoImplTest.java.

-David


Mime
View raw message