8 Replies Latest reply on Jun 7, 2006 5:38 AM by VisolveGroup

    Connecting from one server to other

    Sebastian Rzytki Newbie

      Hello
      I have two servers one which makes available some services, and second server which contain ordinary web application. Some part of web application need to access to remote server (through JNDI) so i configured access to jndi like below:

      Properties jndiProperties = new Properties();
      jndiProperties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      jndiProperties.put("java.naming.provider.url", serverAddress;
      InitialContext context = new InitialContext(jndiProperties);


      When I initialize my InitalContext in way like above, I get connection to local jndi not to my remote server jndi advisable through serverAddress parameter.

      Problem is I can't override configuration for InitialContext context which is used to lookup local services from jndi for web application.

      I'll will glad for any suggestion.

      Thanks Sebastian