XU configuration properties for Java SE
You can set configuration properties for execution units (XU) by using the API of session factories or the XU configuration API.
About this task
You can modify the behavior of Java™ SE instances of the execution unit (XU) by using the session factory API to change the XU configuration settings. In this example, you use the session API to set the persistence mode.
You can also use the IlrXUConfig.loadSettings method, which
loads the value of XU configuration properties from the resource adapter descriptor file (by
default, ra.xml).
Procedure
Results
IlrSessionFactoryConfig config = IlrJ2SESessionFactory.createDefaultConfig();
config.getXUConfig().getPersistenceConfig().setPersistenceType(IlrPersistenceType.FILE);
config.getXUConfig().getPersistenceConfig().getFilePersistenceConfig().setDirectory(new File("C:/my_ruleset_repo"));
IlrJ2SESessionFactory factory = new IlrJ2SESessionFactory(config);