This figure shows two ways to integrate applications with Rules. The figure shows how XMLFacts are bound to JavaFacts using JAXB, and that only JavaFacts execute in the underlying RulesSession. The outer boundary of the RulesSession shows that if integration at a lower level is necessary, the RulesSession/JavaFacts can be wrapped with a JAX-RPC WebService.