The changeset itself dictates what resources to monitor, if I understand it properly, so if you're just looking for new packages just add them to the changeset. You probably know that already.<br><br>See the <addResource> line in KnowledgeBases.xml.<br>
<br>But yes, that's all within one KnowledgeBase (I should rename the default name of that changeset file to KnowledgeBase.xml or something like that.).<br><br>Anyhow, I suspect that it would be useful to allow the resource adapter to create more than one KnowledgeBase. I'm not entirely sure, frankly, how to set that up. I think that since a KnowledgeBase maps to the overly latinate and annoying JCA concept of a (deep breath) user connection factory {eyes glaze over}, that there's probably a way to move the KnowledgeAgent creation code out of the resource adapter bootstrap area and into...into...a better area {handwave, handwave} where several KnowledgeAgents might be able to be built.<br>
<br>Short answer: no. :-) Longer answer: yeah, there should be a way to do that.<br><br>Best,<br>Laird<br><br><div class="gmail_quote">On Thu, Aug 26, 2010 at 4:10 PM, Andrew Waterman-2 [via Drools - Java Rules Engine] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=1360120&i=0" target="_top" rel="nofollow">[hidden email]</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Just found the configuration in ra.xml:<div><br></div><div><div> <config-property></div><div> <config-property-name>changeSetResourceName</config-property-name></div><div> <config-property-type>java.lang.String</config-property-type></div>
<div> <config-property-value>rules/KnowledgeBases.xml</config-property-value></div><div> </config-property></div></div><div><br></div><div>Can I get it to support more than one changeSet? It would be nice to pass a list to monitor.</div>
<div><br></div><div>best,</div><div><br></div><div>A</div><div><div></div><div class="h5"><div><br></div><div><div>On Aug 26, 2010, at 3:04 PM, Andrew Waterman wrote:</div><br><blockquote style="border-left: 2px solid rgb(204, 204, 204); padding: 0pt 1em;" type="cite">
<div style="word-wrap: break-word;">Hey Laird,<div><br></div><div>How do I configure the resource adaptor to load a specific resource? I have two changesets I would like it to monitor. Is this handled in the ra.xml? I couldn't seem to find what it was monitoring. :)</div>
<div><br></div><div>best wishes,</div><div><br></div><div>Andrew</div><div><br><div><div>On Aug 25, 2010, at 4:24 PM, Andrew Waterman wrote:</div><br><blockquote style="border-left: 2px solid rgb(204, 204, 204); padding: 0pt 1em;" type="cite">
<div style="word-wrap: break-word;">Huge thanks!<div><br></div><div>best,</div><div><br></div><div>A</div><div><br><div><div>On Aug 25, 2010, at 12:55 PM, ljnelson wrote:</div><br><blockquote style="border-left: 2px solid rgb(204, 204, 204); padding: 0pt 1em;" type="cite">
Have a look at <a href="http://code.google.com/p/drools-jca/" rel="nofollow" link="external" target="_blank">http://code.google.com/p/drools-jca/</a>.<br><br>This is not (clearly) released yet; have a look at the source and see what you think.<br>
<br>To build it: check it out, then, with Maven 2.2.1, run mvn clean install from the root.<br>
<br>If you have all the right repositories set up in your settings.xml, everything should complete normally. If you don't, Maven will tell you what artifacts are missing, and a quick Google search will unveil the repositories they're hosted in.<br>
<br>Best,<br>Laird<br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 1:39 PM, Andrew Waterman-2 [via Drools - Java Rules Engine] <span dir="ltr"><<a href="#12ab0057a653eef3_" rel="nofollow" link="external" target="_top">[hidden email]</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 2px solid rgb(204, 204, 204); padding: 0pt 1em;">
Very useful to the JEE community Laird. I just recently started working with the KnowledgeAgent and Drools Guvnor; so I really feel the need. Please do let us all know when your implementation is available in the trunk and/or a standalone version. :)
<br><br>best wishes,
<br><br>Andrew
<br><div><div></div><div><br><br>On Aug 24, 2010, at 9:50 PM, ljnelson wrote:
<br></div></div><div><div><div></div><div><div><div><div class='shrinkable-quote'><br>>
<br>> Hello; I've made a JCA resource adapter for Drools.
<br>>
<br>> I've had to hack quite a bit to get it so that the KnowledgeAgent- and
<br>> resource-scanning-related parts don't use Threads, but, instead, use the
<br>> JCA-supplied WorkManager and BootstrapContext#createTimer() for asynchronous
<br>> operations (like resource scanning and notifying).
<br>>
<br>> Here are some changes it would sure be nice to see, that I needed to hack
<br>> around in order to make it so that a KnowledgeAgent-produced KnowledgeBase
<br>> could be shared by Java EE components in a specification compliant manner:
<br>>
<br>> 1. ResourceChangeNotifierImpl#ProcessChangetSet is an inner class that is
<br>> marked as public static, but which has a package-protected constructor. I
<br>> have to create a new instance of this in order to create a
<br>> ResourceChangeNotifierImpl subclass that doesn't use threads. I hope this
<br>> constructor could be made public instead. Right now I'm calling
<br>> setAccessible(true). Yecch.
<br>>
<br>> 2. ResourceFactory#setFactoryService(): sure do wish this were public, or
<br>> that there were another way to install a ResourceFactoryService. I need to
<br>> do this so that the scanner and notifier are under my control (and don't use
<br>> Threads, but instead use Timers as provided by the JCA BootstrapContext
<br>> class). It appears that I do have some control here in Drools 5.1 with the
<br>> (undocumented) ServiceRegistry interface (how do I get an instance of it?
<br>> what does it do? is it used pervasively?), but I don't know, since it's
<br>> undocumented, whether it's the preferred way to do this sort of thing or
<br>> not.
<br>>
<br>> 3. All this indirection is really quite clunky, especially given the
<br>> META-INF/services facility. Was there a good reason this was not used? I'm
<br>> sure there was something, because having to consult a factory for a service
<br>> to get a provider to produce an instance of something is a bit much.
<br>>
<br>> Hacking around those limitations, I was able to produce a Drools resource
<br>> adapter that vends KnowledgeBase instances as its user connection factories.
<br>> This means to use it in a spec-compliant manner, you do this in your
<br>> stateless (or stateful) session bean:
<br>>
<br>> @Resource
<br>> private KnowledgeBase kb;
<br>>
<br>> ...and you get injected a wrapper KnowledgeBase that uses the Java EE
<br>> container's JCA machinery to invoke operations on the shared KnowledgeBase.
<br>>
<br>> Is this something that would be interesting to other people? If so I am
<br>> happy to open source it.
<br>>
<br>> Thanks for a great toolkit.
<br>>
<br>> Best,
</div></div></div>> Laird
<br>> --
<br>> View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1323225.html?by-user=t&by-user=t&by-user=t&by-user=t" rel="nofollow" link="external" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1323225.html</a><div>
<br>> Sent from the Drools - User mailing list archive at <a href="http://Nabble.com/" rel="nofollow" link="external" target="_blank">Nabble.com</a>.
<br>> _______________________________________________
<br>> rules-users mailing list
<br>> <a href="http://user/SendEmail.jtp?type=node&node=1336588&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></div></div><div></div></div>_______________________________________________
<br>rules-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=1336588&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br><br>
<hr noshade size="1" color="#cccccc">
</div><div style="color: rgb(102, 102, 102); font: 11px tahoma,geneva,helvetica,arial,sans-serif;">
View message @ <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1336588.html?by-user=t&by-user=t&by-user=t" rel="nofollow" link="external" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1336588.html</a>
<br><div>To unsubscribe from Drools and Java EE, <a href="http://drools-java-rules-engine.46999.n3.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=1323225&code=bGpuZWxzb25AZ21haWwuY29tfDEzMjMyMjV8ODk5ODM2NTky&by-user=t&by-user=t&by-user=t" rel="nofollow" link="external" target="_blank">click here</a>.
</div></div>
<br>
</blockquote></div><br>
<br><hr width="300" align="left">
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1336777.html?by-user=t&by-user=t" rel="nofollow" link="external" target="_blank">Re: Drools and Java EE</a><br>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html?by-user=t&by-user=t" rel="nofollow" link="external" target="_blank">Drools - User mailing list archive</a> at <a href="http://Nabble.com/" rel="nofollow" link="external" target="_blank">Nabble.com</a>.<br>
_______________________________________________<br>rules-users mailing list<br><a href="http://user/SendEmail.jtp?type=node&node=1360000&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div></div>_______________________________________________<br>rules-users mailing list<br><a href="http://user/SendEmail.jtp?type=node&node=1360000&i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br></div></div>_______________________________________________<br>
rules-users mailing list<br><a href="http://user/SendEmail.jtp?type=node&node=1360000&i=2" rel="nofollow" target="_blank" link="external">[hidden email]</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br>_______________________________________________
<br>rules-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=1360000&i=3" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br><br>
<hr noshade size="1" color="#cccccc">
</div></div><div style="color: rgb(102, 102, 102); font: 11px tahoma,geneva,helvetica,arial,sans-serif;">
View message @ <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1360000.html?by-user=t" target="_blank" rel="nofollow" link="external">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1360000.html</a>
<br><div class="im">To unsubscribe from Drools and Java EE, <a href="http://drools-java-rules-engine.46999.n3.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=1323225&code=bGpuZWxzb25AZ21haWwuY29tfDEzMjMyMjV8ODk5ODM2NTky&by-user=t" target="_blank" rel="nofollow" link="external">click here</a>.
</div></div>
<br>
</blockquote></div><br>
<br><hr align="left" width="300">
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-and-Java-EE-tp1323225p1360120.html">Re: Drools and Java EE</a><br>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html">Drools - User mailing list archive</a> at Nabble.com.<br>