Is it safe to ignore "No JTA TransactionManager found at fallback JNDI location" exception in BRMS 5.3.x ?

Solution Unverified - Updated -

Issue

  • While performing load testing , the following exception can be seen in server log.
[DEBUG] [org.drools.persistence.jta.JtaTransactionManager.findTransactionManager(106)] No JTA TransactionManager found at fallback JNDI location [java:appserver/TransactionManager]
javax.naming.NameNotFoundException: While trying to look up /appserver/TransactionManager in /appserver/ejb/<jar>.jar/#JBPMUtil.; remaining name '/appserver/TransactionManager'
  • The code behind JBPMUtil is just trying to create ksession and fire rules as shown below.
...
@Singleton

@Resource
  private UserTransaction userTrans;

public StatefulKnowledgeSession createKnowledgeSession(EntityManager eManager, UserTransaction userTrans, String processName) throws Exception {
        Environment environment = KnowledgeBaseFactory.newEnvironment();
        environment.set(EnvironmentName.ENTITY_MANAGER_FACTORY, eManager.getEntityManagerFactory());
        environment.set(EnvironmentName.TRANSACTION, userTrans);
        StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(readKnowledgeBase(processName), null, environment);
        final AgendaEventListener agendaEventListener = new DefaultAgendaEventListener() {
            @Override
            public void afterRuleFlowGroupActivated(RuleFlowGroupActivatedEvent event, WorkingMemory workingMemory) {
                workingMemory.fireAllRules();
            }
        } ;

        ((StatefulKnowledgeSessionImpl)  ((KnowledgeCommandContext) ((CommandBasedStatefulKnowledgeSession) ksession)
            .getCommandService().getContext()).getStatefulKnowledgesession() )
            .session.addEventListener(agendaEventListener) ;
        ...          
        return ksession;
    }
...
  • Is it safe to ignore the DEBUG message?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.