This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
iam getting error when running my application in websphere6.0 and my code is ht.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory"); //ht.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory"); ht.put(Context.PROVIDER_URL,"iiop//myhostname ort");
javax.naming.CommunicationException: A communication failure occurred whi le attempting to obtain an initial context with the provider URL: "iiop://hostname ort". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorr ect bootstrap address or unavailable name server include the network environment and workstation network configuration. [Root exception is org.omg.CORBA.COMM_FA ILURE: purge_calls:1451 reason=1 state=5 vmcid: IBM minor code: 306 completed: Maybe
Can anyone please help us in resolving this issue?