Hi Tommy,<br>We are still refactoring grid, and we will probably include just drools-grid-api as direct dependency of drools-spring.<br>From my perspective it makes perfectly sense to be able to configure where the session will be executed inside the spring configuration.<br>
We will try to remove all the unnecessary dependencies but  we need some time to refactor how grid looks like right now.<br>If the problem is the persistence.xml file we can take a look to find a workaround or  fix it directly.<br>
Greetings.<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 9:26 AM, Tommy Odom <span dir="ltr">&lt;<a href="mailto:odom@finelineprototyping.com">odom@finelineprototyping.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I was able to get drools 5.2 to deploy after removing the persistence.xml from the drools-grid-impl jar file.<br>
<br>
The problem is that one of my classes expects a single persistence unit to exist in the WAR because it is used across multiple WARs that use different persistence unit names.  It appears that Glassfish is seeing both persistence.xmls and setting up multiple PUs.<br>

<br>
I can figure out a way to rework the design so that it still works but it still seems like a reasonable request that drools-spring not depend on the full grid implementation and all of its dependencies.<br>
<div class="im"><br>
On May 17, 2011, at 5:36 PM, Harjot Singh wrote:<br>
<br>
</div><div><div></div><div class="h5">&gt; Hi<br>
&gt;<br>
&gt; Did you try putting your persistence.xml (with same persistence unit name) in META-INF folder in your classpath? That should override the persistence.xml packaged with the jar.<br>
&gt;<br>
&gt; Regards<br>
&gt; Harjot Narula<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of Tommy Odom<br>

&gt; Sent: Tuesday, May 17, 2011 2:29 PM<br>
&gt; To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; Subject: [rules-users] drools-spring drools-grid-impl dependency<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I was attempting to try an upgrade from drools 5.1.1 today to 5.2.0.M2 but I ran into a problem with using the drools-spring artifact.  Since drools-spring needs access to the GridNode it has a dependency on drools-grid-impl which in turn has dependencies on hibernate &amp; JPA 1.0 and includes a persistence.xml file.  I was able to work around the hibernate and JPA 1.0 dependencies using maven exclusion rules but it appears that the included persistence.xml is causing problems with my own configuration locating its persistence unit.<br>

&gt;<br>
&gt; Would it be possible to extract the grid classes that drools-spring is dependent on out into a drools-grid artifact that instead of depending on the full impl?  Either that or does anyone have any suggestions for making sure my persistence.xml in my WAR takes precedence over the one in the JAR?<br>

&gt;<br>
&gt; Thanks!<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</div></div><div class="im">Tommy Odom<br>
FineLine Prototyping, Inc.<br>
c: 919-675-2801<br>
p: 919-781-7702 x201<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">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"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>