This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Within WSAD (could be WAS as well) 2 app servers created to run independently (the same machine, no clustering, just to servers). Server1 with an enterprise application A, Server 2 with an enterprise application B. B uses EJBs from A.
Server1: the port for the naming service is 2809 Server2: the port for the naming service is 2810
JNDI of one of the EJBs running on A is e.g. A_abc
Within application B in order to resolve the A_abc I do following
Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
Some people and I were having the same problem and the solution we came up with (accidentally, by the way) was to replace localhost with the machine's IP address when specifying the URL, both in the ORB config in the server and on the value passed to the env variable. Apperently the app server assumes localhost means that both EARs are located on the same app server. Hope this helps, [ November 12, 2004: Message edited by: Jorge Villalobos ]
----------------------<br />Firefox 1.0. Rediscover the Web.<br /><a href="http://www.mozilla.org/products/firefox/" target="_blank" rel="nofollow">http://www.mozilla.org/products/firefox/</a>