Hi,
I have the following problem. I want to invoke a method on an object
which is on the client side. I want to invoke it from a session bean.

In my client code, I bind an object to a given name :
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url", "localhost:1099");
InitialContext jndiContext = new InitialContext();
jndiContext.bind("xxxx", xxxx);

In the session bean, I try to retrieve the object reference :
InitialContext jndiContext = new InitialContext();
Object ref = jndiContext.lookup("xxxx");

But a NamingException is raised and I can't invoke the method.

What I want to know is why I can't access my client object from a bean ?

Thanks ...



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to