Package org.drools.persistence.session

Examples of org.drools.persistence.session.SessionInfo


      Environment env) {
    if (conf == null) {
      conf = new SessionConfiguration();
    }
    checkEnvironment(env);
    this.sessionInfo = new SessionInfo();

    ReteooStatefulSession session = (ReteooStatefulSession)
        ((KnowledgeBaseImpl) kbase).ruleBase.newStatefulSession((SessionConfiguration) conf, this.env);
    this.ksession = new StatefulKnowledgeSessionImpl(session, kbase);
View Full Code Here


      public Object doInTransaction(TransactionStatus status) {
        T result = (T) jpaTemplate.execute(new JpaCallback() {
          public Object doInJpa(EntityManager em) {
            env.set(EnvironmentName.ENTITY_MANAGER, em);
            try {
              SessionInfo sessionInfoMerged = em.merge(sessionInfo);
              sessionInfoMerged.setJPASessionMashallingHelper(sessionInfo.getJPASessionMashallingHelper());
              sessionInfo = sessionInfoMerged;
              ((StatefulKnowledgeSessionImpl) ksession).session.setEndOperationListener( new EndOperationListenerImpl( sessionInfo ) );
             
              T result = command.execute(kContext);
              em.flush();
View Full Code Here

TOP

Related Classes of org.drools.persistence.session.SessionInfo

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.