javaconfigurationjavapos

How can I specify the jpos.xml path for JavaPos


I want to load my jops.xml which includes my JavaPos decives from a custom location. How can I do it?


Solution

  • You can set it with the JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME property.

    Example how to set it to an env-var:

    System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, System.getenv("jposxml_path"));