Jeets wrote:Look up EJB with InitialContext as below:
How is the lookup done?
Which URL are you using?
Jeets wrote:Thanks for your response, Jetendra.
Could you please try the below code:
Hashtable ht=new Hashtable();
Context ctxt=new InitialContext(ht);
Here 7003 and 7004 are the managed servers.
Please let me know, if this helps.
Appreciate your cooperation.
Jeets wrote:Thanks Jetendra.
Yes! you should use the IP address, as you mentioned.
If the IP address keeps changing, better to use hostname instead of IP address.
Hope this helps.
Jeets wrote:Hi Jeets,
When you say it is not working, does it mean that, it is neither working with IP address nor with host name?