aspose file tools*
The moose likes Websphere and the fly likes websphere javax.naming.InitialContext (Hashtable hashtable) jndi lookup hanged. Not able to get conn Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "websphere javax.naming.InitialContext (Hashtable hashtable) jndi lookup hanged. Not able to get conn" Watch "websphere javax.naming.InitialContext (Hashtable hashtable) jndi lookup hanged. Not able to get conn" New topic
Author

websphere javax.naming.InitialContext (Hashtable hashtable) jndi lookup hanged. Not able to get conn

Muthu Murthy
Greenhorn

Joined: Jul 18, 2011
Posts: 2
Dear Experts,

We are using Websphere 5.1,MQ and getting the Datasource connection for oracle procedure execution. But currently we are facing one big challenge problem.

While jndi.connection lookup time it's hanged and doesn't provide any response, log message and no output. The job keep on running and doesn't end.

We have tried to fix/find the as below many ways.

1. MAX connection increase
2. Host file permission check for Mq server connection
3.Websphere appserver/application server restart.

But we didn't get the any output, same problem persist till now.

Also yesterday we have deeply analyzed, actually its hanged (keep on running) while trying to get the connection for oracle procedure at first time using Initial Context lookup process.

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory" + "");
env.put(Context.PROVIDER_URL, "iiop://localhost:8855/");
Context initialContext = new InitialContext(env);
---
The above line is the problem.

Can you please provide comments then really its help us to solve this problem?

Regards
Muthu

 
jQuery in Action, 2nd edition
 
subject: websphere javax.naming.InitialContext (Hashtable hashtable) jndi lookup hanged. Not able to get conn