Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #22 from sotty/master

Align code with grid 5.5.x
  • Loading branch information...
commit 658a5b2b0d3031203f5ba71e8e865d05d5b50dc3 2 parents 14379cc + f9469e9
@sotty sotty authored
View
9 drools-mas-core/src/main/java/org/drools/mas/core/SessionManager.java
@@ -184,7 +184,14 @@ protected SessionManager( String id, KnowledgeBase kbase, GridNode node ) {
// kaConfig.setProperty("drools.agent.newInstance", "false");
// this.kAgent = KnowledgeAgentFactory.newKnowledgeAgent(id, kbase, kaConfig);
- KnowledgeSessionConfiguration conf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
+ KnowledgeSessionConfiguration conf;
+ if ( node.isRemote() ) {
+ KnowledgeBaseFactoryService kbf = node.get( KnowledgeBaseFactoryService.class );
+ conf = kbf.newKnowledgeSessionConfiguration();
+ } else {
+ conf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
+ }
+
conf.setProperty( ClockTypeOption.PROPERTY_NAME, ClockType.REALTIME_CLOCK.toExternalForm() );
// this.kSession = kAgent.getKnowledgeBase().newStatefulKnowledgeSession(conf, null);
View
2  pom.xml
@@ -24,7 +24,7 @@
<name>Drools :: MAS</name>
<properties>
<project.version>1.0.Final</project.version>
- <drools.version>5.5.0.Final</drools.version>
+ <drools.version>5.5.1-SNAPSHOT</drools.version>
<drools.informer.version>5.5.0-SNAPSHOT</drools.informer.version>
<camel.version>2.7.1</camel.version>
<spring.version>3.0.5.RELEASE</spring.version>
Please sign in to comment.
Something went wrong with that request. Please try again.