Examples of JPAKnowledgeProviderLocalClient


Examples of org.drools.persistence.jpa.grid.JPAKnowledgeProviderLocalClient

    environment.set(EnvironmentName.TRANSACTION_MANAGER, getTransactionManager());
    environment.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
   
    jpaKnowledgeServiceProvider = node.get(JPAKnowledgeFactoryService.class);
    if (jpaKnowledgeServiceProvider instanceof JPAKnowledgeProviderLocalClient) {
      JPAKnowledgeProviderLocalClient local = (JPAKnowledgeProviderLocalClient) jpaKnowledgeServiceProvider;
      local.setCommandServiceClass(SpringSingleSessionCommandService.class);
    }
    else {
      throw new RuntimeDroolsException("JPAKnowledgeService is not instance of: " + JPAKnowledgeProviderLocalClient.class.getName());
    }
   
View Full Code Here

Examples of org.drools.persistence.jpa.grid.JPAKnowledgeProviderLocalClient

    @Before
    public void configureNode() {
        connection = new LocalConnection();

        node = connection.getExecutionNode(null);
        node.set(JPAKnowledgeFactoryService.class, new JPAKnowledgeProviderLocalClient());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.