ProcessEngineFactoryBean fails to register created process engine properly

Description

When org.activiti.spring.ProcessEngineFactoryBean creates new org.activiti.engine.impl.ProcessEngineImpl, the latter registers itself using org.activiti.engine.ProcessEngines#registerProcessEngine, which is fine. But at the moment org.activiti.engine.ProcessEngines is not initialized, so first call to any of org.activiti.engine.ProcessEngines#get* methods caused lazy ProcessEngines initialization, effectively discarding previously register engine.

Patch to fix this issue is included. The temporary workaround is to initialize the ProcessEngines eagerly before any of {{ProcessEngineFactoryBean}}s are invoked:

Environment

Linux 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 10:18:49 UTC 2010 i686 GNU/Linux

Assignee

Frederik Heremans

Reporter

Tomasz Nurkiewicz

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure