Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. public static IdentityManagerAPI connect_ICE_TEST(IdentityManagerAPI api) {
  2. try {
  3. System.setProperty("java.security.auth.login.config",
  4. "C:\JDeveloper\mywork\AddRemoveAPP\AddRemove\src\config\authwl.conf");
  5. System.setProperty("OIM.AppServerType", "weblogic");
  6. java.util.Hashtable<String, String> env = new java.util.Hashtable<String, String>();
  7. env.put("java.naming.provider.url", "t3://<ip address>:<port>");
  8. env.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
  9. tcUtilityFactory tcUtilityFactory = new tcUtilityFactory(env, "<username>", "<password>");
  10. api = IdentityManagerAPI.getAPI(tcUtilityFactory);
  11. } catch (Exception e) {
  12. logMap.put("Server connection error", 2);
  13. e.printStackTrace();
  14. }
  15.  
  16. return api;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement