<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Earnest Dyke wrote:
<blockquote cite="mid:903858.65093.qm@web65409.mail.ac4.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div
style="font-family: tahoma,new york,times,serif; font-size: 10pt;">
<div>Could you do the same thing with an entity manager?<br>
</div>
</div>
</blockquote>
of course, drools doesn't know what these things are - it's just a
black box expression and it processes the results.<br>
<br>
Mark<br>
<blockquote cite="mid:903858.65093.qm@web65409.mail.ac4.yahoo.com"
type="cite">
<div
style="font-family: tahoma,new york,times,serif; font-size: 10pt;">
<div><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
face="Tahoma" size="2">
<hr size="1"><b><span style="font-weight: bold;">From:</span></b>
Mark Proctor <a class="moz-txt-link-rfc2396E" href="mailto:mproctor@codehaus.org"><mproctor@codehaus.org></a><br>
<b><span style="font-weight: bold;">To:</span></b> Rules Users List
<a class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org"><rules-users@lists.jboss.org></a><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 moz-do-not-send="true" ymailto="mailto:rules-users@lists.jboss.org"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div>
</div>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>