Would you consider making the <span style="font-family: courier new,monospace;">setFactoryService()</span> method in <span style="font-family: courier new,monospace;">ResourceFactory </span>be <span style="font-family: courier new,monospace;">public</span>?<br>
<br>My Drools-as-a-JEE-compliant-resource-adapter project currently needs to invoke this through a <span style="font-family: courier new,monospace;">setAccessible()</span> hack: <a href="http://code.google.com/p/drools-jca/source/browse/trunk/drools-jca/src/main/java/com/google/code/drools/jca/DroolsResourceAdapter.java#319">http://code.google.com/p/drools-jca/source/browse/trunk/drools-jca/src/main/java/com/google/code/drools/jca/DroolsResourceAdapter.java#319</a><br>
<br>This is because I&#39;m attempting to (ultimately) override the usage of <span style="font-family: courier new,monospace;">Thread</span>s and re-express the asynchronous intent of the <span style="font-family: courier new,monospace;">KnowledgeAgent </span>by using container APIs such as <span style="font-family: courier new,monospace;">Timer</span>, <span style="font-family: courier new,monospace;">WorkManager</span>, etc.<br>
<br>My project does this successfully, but I had to hack access to this method to do it.<br><br>There is a constructor in <span style="font-family: courier new,monospace;">ProcessChangeSet </span>as well that I think should be <span style="font-family: courier new,monospace;">public</span>.  Currently I get at it like this:<br>
<br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">final Constructor&lt;ProcessChangeSet&gt; c = ProcessChangeSet.class.getDeclaredConstructor(LinkedBlockingQueue.class, ResourceChangeNotifierImpl.class, SystemEventListener.class);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">assert c != null;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">c.setAccessible(true);</span><br></div><br>Looking forward to the discussion,<br>
Laird<br>