Open a client connection to OIM Server

Open a connection to OIM server at hostname host, port port, with credentials username, password from a client Java application.

System.setProperty("", "file:config/authwl.conf");
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, "weblogic.jndi.WLInitialContextFactory");
env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://" + hostname + ":" + port);
OIMClient oimClient = new OIMClient(env);
oimClient.login(username, password.toCharArray());

The contents of the referenced config/authwl.conf file:

    required debug=true;

See also

  1. Setting up classpath
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License