Package org.drools.persistence.jpa.grid

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


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

        node = connection.getExecutionNode(null);
        node.set(JPAKnowledgeFactoryService.class, new JPAKnowledgeProviderLocalClient());
    }
View Full Code Here

TOP

Related Classes of org.drools.persistence.jpa.grid.JPAKnowledgeProviderLocalClient

Copyright © 2018 www.massapicom. 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.