Package jifx.commons.mapper.ejb

Examples of jifx.commons.mapper.ejb.IMapper


      Hashtable<String, String> env = new Hashtable<String, String>();
      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();
  }
    }
View Full Code Here

TOP

Related Classes of jifx.commons.mapper.ejb.IMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.