Hi man,<br>can you show us your persistence.xml file where it&#39;s defined <span class="st0">org.drools.persistence.jpa Persistence Unit</span>?<br><br><br><br><div class="gmail_quote">2010/5/3  <span dir="ltr">&lt;<a href="mailto:andre.fonseca@mail.com">andre.fonseca@mail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="black" face="arial" size="2">
<div> <br>
</div>

<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Hi Mauricio, thanks for your reply</font></font><br>
</div>

<div style="clear: both;"></div>

<div> <font size="2"><font face="Arial, Helvetica, sans-serif"><br>
I have commented the transaction , please check <a href="http://pastebin.com/NxQyft2t" target="_blank">http://pastebin.com/NxQyft2t</a><br>
I put the hibernate log there too.<br>
<br>
There is no error, after the first time executed I have the tables created in mysql<br>
<br>
| processinstanceeventinfo       |<br>
| processinstanceinfo            |<br>
| processinstanceinfo_eventtypes |<br>
| sessioninfo                    |<br>
| workiteminfo                   |<br>
<br>
but they are empty, this is because I am not creating a process just rules and facts?<br>
<br>
the drools expert knowlege database persist rules and facts or this is maintained only in the working memory?<br>
<br>
TIA<br>
<br>
<br>
<br>
</font></font></div>

<div> <br>
</div>

<div style="font-family: arial,helvetica; font-size: 10pt; color: black;"><div class="im">-----Original Message-----<br>
From: Mauricio Salatino &lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;<br>
To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br></div><div><div></div><div class="h5">
Sent: Sun, May 2, 2010 11:16 pm<br>
Subject: Re: [rules-users] Drools + ETL Process<br>
<br>






<div>

Ok looks nice.. but you shouldn&#39;t begin and commit the transaction. If you remove that.. do you have some error? <br>
<br>

<div class="gmail_quote">2010/5/2  <span dir="ltr">&lt;<a href="mailto:andre.fonseca@mail.com" target="_blank">andre.fonseca@mail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="black" face="arial" size="2">

<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Hi Mauricio,<br>

<br>

Sorry if I was not clear. I have already installed Guvnor, and I have also changed repository.xml to persist data in MySQL.<br>

But I dont want to use Guvnor, I would like to author the rules and facts in Eclipse using Drools plugin ( I have also installed it ) and persist data in MySQL.<br>

That&#39;s because I&#39;m trying to use JPAKnowlegeService<br>

Could you please take a look in the code of pastebin?<br>

<br>

TIA<br>

</font></font></div>



<div style="clear: both;"></div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family: arial,helvetica; font-size: 10pt; color: black;">
<div>-----Original Message-----<br>

From: Mauricio Salatino &lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;<br>

To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>
</div>

<div>
<div></div>

<div>
Sent: Fri, Apr 30, 2010 6:54 pm<br>

Subject: Re: [rules-users] Drools + ETL Process<br>

<br>








<div>

Hi man,<br>

you are mixing a lot of stuff here..<br>

I will recommend you the following steps for achieving the steps that you are mentioning<br>

1) Install guvnor<br>

2) author the rules inside it.. (it already contains a JCR repository, that is similar to a database, it will allow you to store rules there), you can also author some objects (fact model) inside guvnor.<br>


3) Then you can create tests to execute the rules and see which rules are fired.<br>

<br>

Greetings, hope it helps!<br>



<div class="gmail_quote">2010/4/30  <span dir="ltr">&lt;<a href="mailto:andre.fonseca@mail.com" target="_blank">andre.fonseca@mail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="black" face="arial" size="2">


<div> <br>


</div>





<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Hi Esteban,<br>


<br>


Sorry, I have only one week looking into Drools =)<br>


Yes, I am talking about Drools Expert Database<br>


<br>


Looking into this <a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/apidocs/org/drools/persistence/jpa/JPAKnowledgeService.html" target="_blank">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/apidocs/org/drools/persistence/jpa/JPAKnowledgeService.html</a> I tried a sample snippet<br>





<br>


<a href="http://pastebin.com/uJd5642D" target="_blank">http://pastebin.com/uJd5642D</a><br>


<br>


But its incomplete, for example, I need to create the Rule in the database also<br>


<br>


The things that I need to do are:<br>


1) Create Rule and Object Facts in Java and persist them in the Drools Expert Database<br>


2) Check in the Guvnor Interface the Rules and Facts created in the step before<br>


2) Fire the Rules created and get the response<br>


</font></font></div>





<div style="clear: both;"></div>





<div> <br>


</div>





<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Is there someone that have experience using JPA persistence with Drools? I already have a simple project configured using JPA and Hibernate but I still don&#39;t know how to proceed =(<br>





<br>


Thanks In Advance !<br>


</font></font></div>



<div>

<div></div>



<div>



<div style="font-family: arial,helvetica; font-size: 10pt; color: black;">-----Original Message-----<br>


From: Esteban Aliverti &lt;<a href="mailto:esteban.aliverti@gmail.com" target="_blank">esteban.aliverti@gmail.com</a>&gt;<br>


To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>


Sent: Thu, Apr 29, 2010 9:02 pm<br>


Subject: Re: [rules-users] Drools + ETL Process<br>


<br>










<div>

Which drools database are you talking about? If you just want to use drools expert, you don&#39;t need any db. If you want to persist your kbase or rules, feel free to use whatever mechanism you want.<br>


<br>





<div class="gmail_quote">

2010/4/28  <span dir="ltr">&lt;<a href="mailto:andre.fonseca@mail.com" target="_blank">andre.fonseca@mail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="black" face="arial" size="2">



<div> <br>



</div>







<div> <font size="2"><font face="Arial, Helvetica, sans-serif">Hi all,<br>



<br>



I am using Drools 5.0 with Tomcat 6 and MySQL.<br>



<br>



Now I need to insert data in the drools database but I DON&#39;T want to use the Guvnor interface.<br>



This is because in the future we&#39;ll need to use a kind of ETL process to populate the drools database.<br>



<br>



Should I create a java class with JDBC access and perform a SQL direct to that tables?<br>



I did the reverse engineering of the drools database but I could not understood yet where the data are persisted.<br>



<br>



Any advice should be very helpful.<br>



<br>



Thanks in advance.<br>



<br>



</font></font></div>







<div style="clear: both;"></div>



</font>
<br>


_______________________________________________<br>



rules-users mailing list<br>



<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>



<br>


</blockquote></div>


<br>


<br clear="all"><br>


-- <br>


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>


<br>


Esteban Aliverti<br>




</div>


 




<div style="margin: 0px; font-family: Tahoma,Verdana,Arial,Sans-Serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">

<pre style="font-size: 9pt;"><tt>_______________________________________________<br>
<br>
<br>
<br>
rules-users mailing list<br>
<br>
<br>
<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<br>
<br>
<br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<br>
</tt></pre>
</div>


 

</div>


</div>

</div>

</font>
<br>

_______________________________________________<br>


rules-users mailing list<br>


<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>


<br>

</blockquote></div>

<br>

<br clear="all"><br>

-- <br>

 - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>

 - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>

 - Salatino &quot;Salaboy&quot; Mauricio -<br>



</div>

 



<div style="margin: 0px; font-family: Tahoma,Verdana,Arial,Sans-Serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">

<pre style="font-size: 9pt;"><tt>_______________________________________________<br>
<br>
rules-users mailing list<br>
<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</tt></pre>
</div>

 

</div>
</div>
</div>

</font>
<br>
_______________________________________________<br>

rules-users mailing list<br>

<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>

<br>
</blockquote></div>
<br>
<br clear="all"><br>
-- <br>
 - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
 - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
 - Salatino &quot;Salaboy&quot; Mauricio -<br>


</div>
 


<div style="margin: 0px; font-family: Tahoma,Verdana,Arial,Sans-Serif; font-size: 12px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">

<pre style="font-size: 9pt;"><tt>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</tt></pre>
</div>
 

</div></div></div>
</font>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a 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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>