File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets 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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: websphere javax.naming.InitialContext (Hashtable hashtable) jndi lookup hanged. Not able to get conn
 
Similar Threads
pub/sub on MQSeries
JMS queue in Websphere 5.0 - Class Cast Exception!
System exception on UserTransaction.commit() , followed by RollbackException
Getting Class cast exception while Lookup EJB2.1 session bean using JNDI name in WAS6.1
Standalone Java EJB client