gagaliya
asked on
environment getInitialContext() stuck
Hi, i have some java code that try to get intiialcontext to a weblogic server. it works fine, until the weblogic server status became FAILED. Then the code would just stuck at that line, NOT going into exception or anything. Cant figure out what is going on, can someone provide a few pointers, thanks.
Environment env = new Environment();
env.setProviderUrl(_url);
env.setSecurityPrincipal(_ user);
env.setSecurityCredentials (_password );
try {
//WHEN WEBLOGIC SERVER STATE BECAME FAILED, IT STUCKS AT THIS LINE
//CONFIRMED BY STEP THRU VIA DEBUG
ctx = env.getInitialContext(); <---STUCKS AT THIS LINE
home = (MBeanHome) ctx.lookup(MBeanHome.LOCAL _JNDI_NAME );
} catch (AuthenticationException e)
{
etc....
Environment env = new Environment();
env.setProviderUrl(_url);
env.setSecurityPrincipal(_
env.setSecurityCredentials
try {
//WHEN WEBLOGIC SERVER STATE BECAME FAILED, IT STUCKS AT THIS LINE
//CONFIRMED BY STEP THRU VIA DEBUG
ctx = env.getInitialContext(); <---STUCKS AT THIS LINE
home = (MBeanHome) ctx.lookup(MBeanHome.LOCAL
} catch (AuthenticationException e)
{
etc....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
ASKER