1 Reply Latest reply on Oct 10, 2004 8:17 AM by roberto roberto

    How not to hardcode these lines ?

    Hussein Baghdadi Novice

      Hi all.
      I wrote a swing application that uses EJBs hosted in JBoss.
      the client contains the following lines :

      Properties properties = new Properties();
      properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      properties.put(Context.PROVIDER_URL, "localhost:1099");

      I don't want to hard code them in my code.
      how can I isolate them from the code ?