<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma,new york,times,serif;font-size:10pt"><div>Could you do the same thing with an entity manager?<br><br>Earnie!<br></div><div style="font-family: tahoma,new york,times,serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Mark Proctor <mproctor@codehaus.org><br><b><span style="font-weight: bold;">To:</span></b> Rules Users List <rules-users@lists.jboss.org><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, March 27, 2009 2:09:19 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Guvnor and 'from' database<br></font><br>
Anu@work wrote:<br>> I am trying to use drools to evaluate the following rule:<br>> <br>> Given a telephone number, if the telephone number already exists in database<br>> and has a balance > 0, set isAllowed = false. <br>> Looking at forum posts I understand that this can be achieved using<br>> hibernate and 'from' keyword. However, this is my current scenario - I<br>> create a package snapshot for my rules in Guvnor and use the URL in Drools<br>> execution server. Execution server runs only stateless sessions. <br>> Where and how do I use hibernate named queries? <br>set the hibernate session as a global and then the 'from' can access it.<br>> Thx,<br>> Anu<br>> <br>> <br>> <br><br><br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a
href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></div></div></body></html>