<html><body bgcolor="#FFFFFF"><div>Hi&nbsp;</div><div><br></div><div>Thought it would make sense to show some code:</div><div><br></div><div>Properties prop = new Properties();</div><div>...</div><div>prop.put("drools.workItemManagerFactory", CustomJPAWorkItemManagerFactory.class.getName());</div><div>KnowledgeSessionConfiguration config = KnowledgeBaseFa ctory.newKnowledgeSessionConfiguration(prop);</div><div>JPAKnowledgeService.newStatefulKnowledgeSession(..,config,..);</div><div><br></div><div><br></div><div>The default JPAWorkItemManager factory is picked up every time. This is due to the session configuration containing 2 factories and the default is being pickedup.&nbsp;</div><div><br></div><div>Any help would be appreciated.&nbsp;</div><div><br></div><div>Cheers</div><div><br></div><div><br>Sent from my iPhone</div><div><br>On 7 Sep 2011, at 04:58, Mauricio Salatino &lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>are you sure that the property is being set in the right place? I always have troubles doing that. Did you try setting it up using the APIs? Just to see if your work item works?<div>Cheers<br><div><br><div class="gmail_quote">
2011/9/6 Amin Mohammed-Coleman <span dir="ltr">&lt;<a href="mailto:aminmc@gmail.com"><a href="mailto:aminmc@gmail.com">aminmc@gmail.com</a></a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><span style="color:rgb(91, 91, 91);font-family:'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:12px;border-collapse:collapse"><div style="background-color:transparent;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;border-collapse:collapse;font-size:1em;list-style-type:none;list-style-position:initial;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;outline-width:0px;outline-style:initial;outline-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
Hi</div><p style="background-color:transparent;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;border-collapse:collapse;font-size:1em;list-style-type:none;list-style-position:initial;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;outline-width:0px;outline-style:initial;outline-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:8pt;min-height:8pt;background-repeat:initial initial">
&nbsp;<br></p><div style="background-color:transparent;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;border-collapse:collapse;font-size:1em;list-style-type:none;list-style-position:initial;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;outline-width:0px;outline-style:initial;outline-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
I am trying to set a custom jpa work item manager and setting it on the properties object before i create a knowledgesessionconfiguration with property "drools.workItemManagerFactory" but it seems as though the default JPAWorkItemManager is used every time.&nbsp; Is there a way to override this?&nbsp;</div>
<div style="background-color:transparent;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;border-collapse:collapse;font-size:1em;list-style-type:none;list-style-position:initial;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;outline-width:0px;outline-style:initial;outline-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<br></div><p style="background-color:transparent;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;border-collapse:collapse;font-size:1em;list-style-type:none;list-style-position:initial;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;outline-width:0px;outline-style:initial;outline-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:8pt;min-height:8pt;background-repeat:initial initial">
&nbsp;<br></p><div style="background-color:transparent;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;border-collapse:collapse;font-size:1em;list-style-type:none;list-style-position:initial;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;outline-width:0px;outline-style:initial;outline-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
Cheers</div></span></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank"><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>&nbsp;- CTO @ <a href="http://www.plugtree.com" target="_blank"><a href="http://www.plugtree.com">http://www.plugtree.com</a></a>&nbsp; <br>&nbsp;- MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank"><a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a></a><div>
- Co-Founder @ <a href="http://www.jugargentina.org" target="_blank"><a href="http://www.jugargentina.org">http://www.jugargentina.org</a></a><br>&nbsp;- Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank"><a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a></a><br>&nbsp;<br>&nbsp;- Salatino "Salaboy" Mauricio -</div>
<br>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rules-users mailing list</span><br><span><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></span><br></div></blockquote></body></html>