6 Replies Latest reply on Jul 20, 2007 4:20 AM by Gavin King

    Drools (JBoss Rules) Hibernate Query and EntityManager

    Damian Harvey Master

      Drools rules can use Hibernate queries to perform checks against the database. They look something like this:

      $cheese : Cheese() from session.createQuery("select cheese from Products where ...").setProperties( {"key1" => "value1", "key2" => "value2" }).list()

      How does the session get passed to Drools and is it possible to pass Seam's EntityManager in a similar fashion? Has anyone used this feature of Drools with Seam?