Hi all I have bean and a Servlet which accesses the bean. But the bean is in another server. How do I mention the ip address of this machine in my servlet.
You need an IntitialContext to get the bean from a JNDI lookup - the exact parameters will differ depending on the server vendor, check your server docs.
If you post what server your web and EJB apps are on then we might be able to help.