Hello ! Sorry by my english.
When run my aplication return this error :

javax.naming.NameNotFoundException: Exception in lookup.: `SaludoBean'
could not be found. [Root exception is
weblogic.corba.cos.naming.NamingContextAnyPackage. NotFound:
IDL:weblogic/corba/cos/naming/NamingContextAny/NotFound:1.0]
at
weblogic.corba.j2ee.naming.Utils.wrapNamingExcepti on(Utils.java:65)
at
weblogic.corba.j2ee.naming.ContextImpl.lookup(Cont extImpl.java:224)
at
weblogic.corba.j2ee.naming.ContextImpl.lookup(Cont extImpl.java:162)

The code is:

public static void main(String[] args)
{
// TODO code application logic here
try
{
// PRUEBA 2 //
/*Context ctx = getInitialContext();
Object reference = ctx.lookup( "com.base_domain.MyBean" );
SaludoLocalHome myBean = (SaludoLocalHome)
PortableRemoteObject.narrow( reference, SaludoLocalHome.class );
System.out.println("Parece que funciona"); */



// PRUEBA 1 //
Context jndiContext = getInitialContext();
//Object ref =
jndiContext.lookup("corbaname:iiop:localhost:7001#SaludoBean");
Object ref = jndiContext.lookup("SaludoBean");
System.out.println("POR FIN PASO POR AQUI");
SaludoLocalHome home = (SaludoLocalHome)
PortableRemoteObject.narrow( ref ,
SaludoLocalHome.class);
SaludoLocal sal = home.create();
System.out.println("Voy a llamar al bean");
System.out.println(sal.saluda());
System.out.println("Ya he llamado al bean");
sal.remove();

}
catch (Exception e)
{
System.out.println("Estoy dentro de este error");
e.printStackTrace();
}
}
//Con esto conseguimos conexion con la red del servidor EJB
/*public static Context getInitialContext() throws
javax.naming.NamingException
{
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
return new javax.naming.InitialContext(p);
}*/
public static Context getInitialContext() throws
javax.naming.NamingException
{
Hashtable args = new Hashtable(); // or Properties args = new
Properties();
args.put( Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
args.put( Context.PROVIDER_URL, "t3://localhost:7001" );
return new InitialContext(args);
}

WebLogic 9.0 . The path of this is: C:\WebLogic9\user_projects\domains
\base_domain.
The error is in Object ref = jndiContext.lookup("SaludoBean"); not
found the EJB
The EJB Module have 3 files (SaludoBean , SaludoLocal and
SaludoLocalHome). Are deployes correctly.

Thanks and sorry , but i don't know more english.