Hi Heiko,
I'm pretty intrested in your solution. I'm working on wildfly but I had the same approach than you to inject the container managed thread pool executor provided by JEE7. I have wrote my own JobExecutor and everything works fine as asyn service tasks are executed in manged thread according to log.
Now I'm facing another problem regarding authentication. When calling EJB from Service Task, initial context of workflow execution (aka the initier logged in when starting the workflow instance) is lost when service task execute and, because I use security domain, unauthentified service task thread is not able to make the EJB call due to security restrictions…
Before embedding activiti in my application, I had code a very simple task manager which was using an Executor too but also the ContextService in order to create Threads keeping the original EJB caller SecurityContext…
I don't see how to handle security problem (a kind of runas) from the activiti async thread to be able to be authentified…
I haven't understand precisly where you use the @Asynchronous EJB call in order to keep some Context information like Transaction and if it is suitable for my needs.
Could you please give me some sample code or a little bit more information about your solution ?
Best Regards, Jérôme.