Yes you are right in a sense that application server is sending the Objects (implementations of the interfaces ) , but to deserialize those objects , we need to have stub classes in our classpath ?
BTW this is the client code i m using
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
try {
ctx = new InitialContext(ht);
} catch (Exception e) {
}
Object o = ctx.lookup("First");
AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o,
AdviceHome.class);
Advice advisor = home.create();
String st=advisor.getAdvice("nishan")