[jboss-jira] [JBoss JIRA] (DROOLS-1127) Google App Engine support: Do not call new Thread() by allowing to plug in a custom ThreadFactory
Geoffrey De Smet (JIRA)
issues at jboss.org
Fri Apr 15 07:44:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet updated DROOLS-1127:
-------------------------------------
Description:
Any code that does `new Thread()` on GAE throws an exception, because you can't create new threads yourself.
Other future cloud platforms might have a similar restriction. It should be possible to plug in a custom way of creating threads.
*Proposal A)* Add a kieBase configuration property to change the ThreadFactory
{code}
drools.threadFactory = com.user.project.GoogleAppEngineThreadFactory
{code}
*Proposal B)* Add a kieBase configuration property to change the ExecutorServiceFactory
{code}
drools.executorServiceFactory = com.user.project.ExecutorServiceFactory
{code}
was:
Any code that does `new Thread()` on GAE throws an exception, because you can't create new threads yourself.
Other future cloud platforms might have a similar restriction. It should be possible to plug in a custom way of creating threads.
*Proposal A)* Add a kieBase configuration property to change the ThreadFactory
{code}
drools.threadFactory = com.user.project.GoogleAppEngineThreadFactory
{code}
*Proposal B)* Add a kieBase configuration property to change the ExecutorService
{code}
drools.executorServiceFactory = com.user.project.ExecutorServiceFactory
{code}
> Google App Engine support: Do not call new Thread() by allowing to plug in a custom ThreadFactory
> -------------------------------------------------------------------------------------------------
>
> Key: DROOLS-1127
> URL: https://issues.jboss.org/browse/DROOLS-1127
> Project: Drools
> Issue Type: Enhancement
> Components: core engine
> Reporter: Geoffrey De Smet
> Assignee: Mario Fusco
>
> Any code that does `new Thread()` on GAE throws an exception, because you can't create new threads yourself.
> Other future cloud platforms might have a similar restriction. It should be possible to plug in a custom way of creating threads.
> *Proposal A)* Add a kieBase configuration property to change the ThreadFactory
> {code}
> drools.threadFactory = com.user.project.GoogleAppEngineThreadFactory
> {code}
> *Proposal B)* Add a kieBase configuration property to change the ExecutorServiceFactory
> {code}
> drools.executorServiceFactory = com.user.project.ExecutorServiceFactory
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list