ejb-spec
  1. ejb-spec
  2. EJB_SPEC-9

Introduction of @MaxConcurrency annotation

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2
    • Fix Version/s: Future version
    • Labels:
      None

      Description

      Currently proprietary max-pool-size settings are used to control the max concurrency of an application and so to prevent overloading the application server.

      We could abstract the intended behavior into an annotation:

      @Target(value =

      {ElementType.METHOD, ElementType.TYPE})
      @Retention(value = RetentionPolicy.RUNTIME)
      public @interface MaxConcurrency {
      public int value() default 30;
      }

      We could provide more generic annotation like:

      @Target(value = {ElementType.METHOD, ElementType.TYPE}

      )
      @Retention(value = RetentionPolicy.RUNTIME)
      public @interface Concurrency {
      public int max() default 30;
      }

      to support future extensions.

      This functionality should be available for EJB 3.2 and CDI.

        Activity

        abien created issue -
        abien made changes -
        Field Original Value New Value
        Attachment MaxConcurrency.zip [ 49926 ]
        marina vatkina made changes -
        Fix Version/s Future version [ 15771 ]
        marina vatkina made changes -
        Assignee marina vatkina [ mvatkina ]

          People

          • Assignee:
            marina vatkina
            Reporter:
            abien
          • Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated: