Chapter 18. Embedding Jess in Java applications

In this chapter you’ll...

  • Learn about the jess.Rete class
  • Create and manipulate facts from Java
  • Work with Jess exceptions
  • Learn to reroute Jess’s I/O channels

Every application you’ve written so far has been based on the command-line interface tool jess.Main. The Tax Forms Advisor and PC Repair Assistant each consisted entirely of a single Jess script, whereas the HVAC Controller also included some Java classes. Each of these three programs could be launched by starting jess.Main and telling it the filename of a script from the command line.

It might look as though jess.Main is Jess’s central class. In fact, jess.Main is just a command-line wrapper around the Jess library. With the library, ...

Get Jess in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.