Does the following work:
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");
props.put(Context.PROVIDER_URL, localhost:1099/NameService);
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community