How can I specify the jpos.xml path for JavaPos

2.7k Views Asked by At

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

1

There are 1 best solutions below

2
On BEST ANSWER

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"));