Brian Stansberry edited a comment on Task AS7-4934

The server now provides access to a shared thread pool for use in blocking tasks. Services can inject it via:

FooService service = new FooService();
ServiceBuilder<Foo> builder = serviceTarget.addService(FOO_SERVICE_NAME, service);

// Depend on and inject the shared thread pool
boolean optionalDependency = false;
org.jboss.as.server.Services.addServerExecutorDependency(builder, service.getExecutorInjector(), optionalDependency);

builder.install();

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira