Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1127

Google App Engine support: Do not call new Thread() by allowing to plug in a custom ThreadFactory

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Beta1
    • None
    • core engine
    • None

      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

      drools.threadFactory = com.user.project.GoogleAppEngineThreadFactory
      

      Proposal B) Add a kieBase configuration property to change the ExecutorServiceFactory

      drools.executorServiceFactory = com.user.project.ExecutorServiceFactory
      

            mfusco@redhat.com Mario Fusco
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: