2 Replies Latest reply on Dec 12, 2012 4:05 AM by markboletti

    JBoss EJB 3 Thread Pool

    markboletti

      Hi everyone,

      looking at my EJB 3 container resources I can see that I've got a Thread pool definition in the EJB 3 subsystem:

       

      "thread-pool" => {"default" => {

                  "active-count" => 0,

                  "completed-task-count" => 0L,

                  "current-thread-count" => 0,

                  "keepalive-time" => {

                      "time" => 100L,

                      "unit" => "MILLISECONDS"

                  },

                  "largest-thread-count" => 0,

                  "max-threads" => 10,

                  "name" => "default",

                  "rejected-count" => 0,

                  "task-count" => 0L,

                  "thread-factory" => undefined

              }}

       

      However when testing my application which uses EJBs 3.1 (no interfaces) from Servlets, the values in the thread pool do not change at all. So I wonder what this thread pool is used for ?

      Thanks

      mark

        • 1. Re: JBoss EJB 3 Thread Pool
          jaikiran

          Invocations on local views happen on the thread of the originating client (in this case the servlet whose thread semantics are configured in web subsytem). Remote invocations make use of the thread pool that's configured in the EJB3 subsystem and @Asynchronous invocations too make use of the thread pool configured in the EJB3 subsystem.

          • 2. Re: JBoss EJB 3 Thread Pool
            markboletti

            Ah good, thanks. That makes sense.

            Regards

            Mark