Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static IdentityManagerAPI connect_ICE_TEST(IdentityManagerAPI api) {
- try {
- System.setProperty("java.security.auth.login.config",
- "C:\JDeveloper\mywork\AddRemoveAPP\AddRemove\src\config\authwl.conf");
- System.setProperty("OIM.AppServerType", "weblogic");
- java.util.Hashtable<String, String> env = new java.util.Hashtable<String, String>();
- env.put("java.naming.provider.url", "t3://<ip address>:<port>");
- env.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
- tcUtilityFactory tcUtilityFactory = new tcUtilityFactory(env, "<username>", "<password>");
- api = IdentityManagerAPI.getAPI(tcUtilityFactory);
- } catch (Exception e) {
- logMap.put("Server connection error", 2);
- e.printStackTrace();
- }
- return api;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement