Friday

WebLogic RMI - Set timeout


Hashtable prop = new Hashtable();
prop.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
prop.put(Context.PROVIDER_URL, jmsProviderUrl);
prop.put(Context.SECURITY_PRINCIPAL, "");
prop.put(Context.SECURITY_CREDENTIALS, "");
prop.put("weblogic.jndi.connectTimeout", 15000);
prop.put("weblogic.jndi.responseReadTimeout", 15000);
                                   
InitialContext ctx = new InitialContext(prop);

No comments:

Post a Comment