<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 &lt;mproctor@codehaus.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> Rules Users List &lt;rules-users@lists.jboss.org&gt;<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>&gt; I am trying to use drools to evaluate the following rule:<br>&gt; <br>&gt; Given a telephone number, if the telephone number already exists in database<br>&gt; and has a balance &gt; 0, set isAllowed = false. <br>&gt; Looking at forum posts I understand that this can be achieved using<br>&gt; hibernate and 'from' keyword. However, this is my current scenario - I<br>&gt; create a package snapshot for my rules in Guvnor and use the URL in Drools<br>&gt; execution server. Execution server runs only stateless sessions. <br>&gt; Where and how do I use hibernate named queries?&nbsp;  <br>set the hibernate session as a global and then the 'from' can access it.<br>&gt; Thx,<br>&gt; Anu<br>&gt; <br>&gt; <br>&gt;&nbsp;  <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>