Problem with Remote EJB 3.0

Hello all,

I'm having a problem when i try to lookup the remote interface of a EJB3.0.

I wrote a EJB with a remote interface and a local interface.

When accessed locally all works fine but when i tried to write a stand-alone test program to access the remote interface every time i'm getting the exception

this.ctx = new InitialContext();

String EJBName =

"ar.edu.unl.rectorado.autenticacion.AutenticadorRemotoRemote";autenticador = (AutenticadorRemotoRemote)ctx.lookup(EJBName);

javax.naming.NameNotFoundException: ar.edu.unl.rectorado.autenticacion.AutenticadorRemotoRemote not found

at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)

at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)

at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)

at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

The Ejb module is running on glassfish.

It looks like a JNDI matter, but I was searching on the net, and everywere the examples are just like

https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html

Thanks and sorry for my English

Gonzalo

[1558 byte] By [GonzaloFerreyraa] at [2007-11-27 4:47:25]
# 1

Hi Gonzalo,

Take a look at our EJB FAQ. There's a lot of information there about how global JNDI names

for Remote EJBs.If you haven't explicitly provided a global JNDI name, it will default to the

fully-qualified name of the remote business interface. Double-check for spelling or capitalization

issues as well.If none of this fixes your problem, please post the source for your Remote

business interface, bean class, and client, including any deployment descriptors.

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

--ken

ksaksa at 2007-7-12 10:00:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Your code looks clean, are you sure that the interface ar.edu.unl.rectorado.autenticacion.AutenticadorRemotoRemote is annotated as remote and that your session bean implements this interface?
toon_macharisa at 2007-7-12 10:00:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

> Your code looks clean, are you sure that the

> interface

> ar.edu.unl.rectorado.autenticacion.AutenticadorRemo

> toRemote is annotated as remote and that your

> session bean implements this interface?

This one could probably be done manually. But in general this type of checks can be done in form of code queries using SemmleCode (http://semmle.com/). It already has a large library of J2EE checks, and custom ones like this can be quickly typed.

elnara at 2007-7-12 10:00:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...