[rules-users] Using KieScanner in drools6
Hi Team, I go through with the release doc http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html_single/ and found that 2.1.6. KieScanner The KieScanner is a maven-oriented replacement of the KnowledgeAgent present in Drools 5. using knowledgwAgent I have linked through changeset.xml by below code in drools 5.4 KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(MyAgent1,kbase, kconf); ResourceFactory.getResourceChangeNotifierService().start(); ResourceFactory.getResourceChangeScannerService().start(); kagent.applyChangeSet(ResourceFactory.newUrlResource(http://localhost:8380/drools-guvnor/ChangeSet.xml;)); kbase = kagent.getKnowledgeBase(); How I can achieve this using drools 6 to interact with my java code to drools workbench. or which drools 6 need to download to interact with java code. Please suggest me, Thanks Ganesh Neelekani -- View this message in context: http://drools.46999.n3.nabble.com/Using-KieScanner-in-drools6-tp4029638.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Using KieScanner in drools6
See http://docs.jboss.org/drools/release/6.1.0.Beta3/drools-docs/html/KIEChapter.html 4.2.3.5. Settings.xml and Remote Repository Setup 4.2.3.3. KieScanner 4.2.5. Installation and Deployment Cheat Sheets Mark On 21 May 2014, at 11:59, ganeshneelekani ganeshneelek...@gmail.com wrote: Hi Team, I go through with the release doc http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html_single/ and found that 2.1.6. KieScanner The KieScanner is a maven-oriented replacement of the KnowledgeAgent present in Drools 5. using knowledgwAgent I have linked through changeset.xml by below code in drools 5.4 KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(MyAgent1,kbase, kconf); ResourceFactory.getResourceChangeNotifierService().start(); ResourceFactory.getResourceChangeScannerService().start(); kagent.applyChangeSet(ResourceFactory.newUrlResource(http://localhost:8380/drools-guvnor/ChangeSet.xml;)); kbase = kagent.getKnowledgeBase(); How I can achieve this using drools 6 to interact with my java code to drools workbench. or which drools 6 need to download to interact with java code. Please suggest me, Thanks Ganesh Neelekani -- View this message in context: http://drools.46999.n3.nabble.com/Using-KieScanner-in-drools6-tp4029638.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Using KieScanner in drools6
Hi Mark, Thanks for suggestions.I will go through with above link I go through with document it uses maven, I do not have any knowledge on maven, Do I need to learn maven to develop project in drools 6 ? I developed using changeset.xml to link java and drools, And drools-guvnor.war, and designer.war in drools 5.4 version. If I develop maven project how to link maven and workbench - I felt confusing in this, Does following code helps KieServices kieServices = KieServices.Factory.get(); ReleaseId releaseId = kieServices.newReleaseId( *org.acme, myartifact, 1.0-SNAPSHOT* ); KieContainer kContainer = kieServices.newKieContainer( releaseId ); KieScanner kScanner = kieServices.newKieScanner( kContainer ); // Start the KieScanner polling the Maven repository every 10 seconds kScanner.start( 1L ) 2. I practiced some workbench tutorial.. and its almost different from drools 5.4, Is there any possible of integrating drools workbench and java code, or else I need to use any other drools war to develop application thanks for your patience . Regards Ganesh N -- View this message in context: http://drools.46999.n3.nabble.com/Using-KieScanner-in-drools6-tp4029638p4029641.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users