I had to use to JPAKnowledgeService ans store the session id elsewhere.
EntityManagerFactory emf = Persistence.createEntityManagerFactory("com.test");
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, null, env);