cancel
Showing results for 
Search instead for 
Did you mean: 

Does Activiti Engine use thread pooling?

alper
Champ in-the-making
Champ in-the-making
I see only 1 thread of Activity in the VisualVM.
So the question is: does Activiti Engine use thread pooling, or new thread is created each time it is needed?
If it creates new thread each time, then it should be slow and heavy operation…
Could developers answer this question?

Thank you
5 REPLIES 5

pkonyves
Champ in-the-making
Champ in-the-making

alper
Champ in-the-making
Champ in-the-making
Nice, thank you, is there any example how to use it?

alper
Champ in-the-making
Champ in-the-making
I didn't forget to activate it, my code is:

<java>
processEngine = ProcessEngineConfiguration
    .createStandaloneInMemProcessEngineConfiguration()
    .setDatabaseSchemaUpdate(
      ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE)
    .setDataSourceJndiName("java:jboss/datasources/ActivitiDS")
    .setJobExecutorActivate(true).buildProcessEngine();
</java>

Another question: how configurate it? or I should hard-code all parameters and re-build the engine jar?

jbarrez
Star Contributor
Star Contributor
No, you can get the instances through the ProcessEngineConfiguration (or processEngineConfigurationImpl after a cast)