hi ppl help me out in removing bug

package helloclient;

import java.util.Properties;

import javax.naming.Context;

import javax.naming.InitialContext;

import javax.rmi.PortableRemoteObject;

import Hello.*;

import org.omg.CORBA_2_3.ORB;

import org.omg.CosNaming.NamingContextExt;

import org.omg.CosNaming.NamingContextExtHelper;

public class Main {

/** Creates a new instance of Main */

public Main() {

}

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

try {

Properties p=new Properties();

p.setProperty("Djava.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");

p.setProperty("Djava.naming.provider.url","iiop://172.20.33.218:3700");

InitialContext ic = new InitialContext(p);

Object o= ic.lookup("ejb/TellHelloBean");

TellHelloRemoteHome helloHome = (TellHelloRemoteHome)PortableRemoteObject.narrow(o,TellHelloRemoteHome.class);

TellHelloRemote obj=helloHome.create();

System.out.println("" + obj.printHello());

System.out.flush();

} catch(Exception e) {

e.printStackTrace();

}

}

}

The above code is the client side code which calls upon the server

When i call the server from the same client its working cool...

But when i try to call it from another system its not working and its throws the following exception.

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resou

rce file: java.naming.factory.initial

at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

kindly help me out

gopal

[1767 byte] By [gopal@tcsa] at [2007-11-27 2:26:29]
# 1
p.setProperty("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");p.setProperty("java.naming.provider.url","iiop://172.20.33.218:3700");take the D outregards
carl.ruhlea at 2007-7-12 2:35:55 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...