Write the Client Application
import employee.Employee;
Hashtable h = new Hashtable ();
h.put(Context.URL_PKG_PREFIXES, “oracle.aurora.jndi”);
h.put(Context.SECURITY_PRINCIPAL, "scott");
h.put (Context.SECURITY_CREDENTIALS, "tiger");
h.put (Context.SECURITY_AUTHENTICATION, ServiceCtx.SSL_CREDENTIAL);
Context ic = new InitialContext (h);
Employee employee = (Employee) ic.lookup(
"sess_iiop://localhost:2481:ORCL/test/myEmp");
String job = employee.getEmployeeJob ("SCOTT");