cancel
Showing results for 
Search instead for 
Did you mean: 

Main doesnot exit

ncoonghe
Champ in-the-making
Champ in-the-making
Created a simple main program a sbelow but after creation of ProcessEngine, the main program blocks, it does not exit

public class TestProcess
{
 
  public static void main(String[] args) {

    // Create Activiti process engine
  /* ProcessEngine processEngine = ProcessEngineConfiguration
      .createStandaloneProcessEngineConfiguration()
      .buildProcessEngine();*/

ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();



  }

}
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
does it end when you add the close() to the processengine?

ncoonghe
Champ in-the-making
Champ in-the-making
I had to use the destroy method to make it exit. close does not seem to work