<div dir="ltr">You can build the PKGs in guvnor and then just move the PKGs to a accesible server by the app that will load the rules in those packages. That will do the work IMO.<div><br></div><div>Regards</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 2:39 PM, ilguapo <span dir="ltr"><<a href="mailto:ilguapo@gmail.com" target="_blank">ilguapo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you for replying Toni and Salaboy.<br>
<br>
This is the reason why we want to do that:<br>
<br>
-We already have an application that uses Guvnor in production. The problem<br>
is Guvnor is hosted on a different machine which we are losing therefore we<br>
thought about an idea of completely eliminating Guvnor by including the<br>
repository in the WAR so that we could read it the first time the<br>
application starts. As you know, this is being done by pointing to the<br>
Guvnor URL at this time.<br>
<br>
-We actually wanted to leave Guvnor in the dev environment so that<br>
developers could add more rules to the application whenever necessary by<br>
providing an Import feature to read the repository_export.zip file into the<br>
application to replace the old repository.<br>
<br>
-If we do this, we will only need Guvnor in the dev environment which is<br>
controlled by us and will be eliminated from all other environments. (Will<br>
reduce a lot of paper work at a government site)<br>
<br>
I like Toni's idea of building the repository using Guvnor in the dev<br>
environment but how do you read the repository the first time the app<br>
starts? This is done now by getting the package from Guvnor thru a URL.<br>
That was the only reason to store the repository inside the WAR file so that<br>
the rules could be read at initialization time.<br>
<br>
Any pointers would be really appreciated especially how to update the<br>
package which according to Toni is easy :-)<br>
<br>
Regards,<br>
Ilguapo<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Including-repository-in-a-WAR-file-tp4030450p4030458.html" target="_blank">http://drools.46999.n3.nabble.com/Including-repository-in-a-WAR-file-tp4030450p4030458.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.com</a><div> - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino "Salaboy" Mauricio -</div></div>
</div>