Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #22 from sotty/master
Browse files Browse the repository at this point in the history
Align code with grid 5.5.x
  • Loading branch information
sotty committed Jan 21, 2013
2 parents 14379cc + f9469e9 commit 658a5b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -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>
Expand Down

0 comments on commit 658a5b2

Please sign in to comment.