env.put("java.naming.factory.initial",
"org.jboss.naming.NamingContextFactory");
env.put("java.naming.provider.url", "localhost:1099");
context = new InitialContext(env);
IMapper remote = (IMapper) context.lookup("MapperImp/remote");
MapElement element = new MapElement();
element.setKey("858");
element.setValue("UY");
element.setDescription("C�digo de moneda en pesos");
remote.addMapping(element);
MapElement mm = remote.getMapElement("m","858");
System.out.println("Moneda: " + mm.getValue());
} catch (NamingException e) {
e.printStackTrace();
}
}