Class ManagedScheduledExecutorDefinitionOnEJBServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
ee.jakarta.tck.concurrent.framework.TestServlet
ee.jakarta.tck.concurrent.spec.ManagedScheduledExecutorService.resourcedef.ManagedScheduledExecutorDefinitionOnEJBServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

@WebServlet("/ManagedScheduledExecutorDefinitionOnEJBServlet") public class ManagedScheduledExecutorDefinitionOnEJBServlet extends TestServlet
See Also:
  • Constructor Details

    • ManagedScheduledExecutorDefinitionOnEJBServlet

      public ManagedScheduledExecutorDefinitionOnEJBServlet()
  • Method Details

    • testManagedScheduledExecutorDefinitionAllAttributesEJB

      public void testManagedScheduledExecutorDefinitionAllAttributesEJB() throws Throwable
      A ManagedScheduledExecutorDefinition defined on an EJB with all attributes configured enforces maxAsync and propagates context.
      Throws:
      Throwable
    • testManagedScheduledExecutorDefinitionDefaultsEJB

      public void testManagedScheduledExecutorDefinitionDefaultsEJB() throws Throwable
      A ManagedScheduledExecutorDefinition defined on an EJB with minimal attributes can run multiple async tasks concurrently and uses java:comp/DefaultContextService to determine context propagation and clearing.
      Throws:
      Throwable
    • testIncompleteFutureMSEEJB

      public void testIncompleteFutureMSEEJB() throws Throwable
      ManagedScheduledExecutorService creates an incomplete CompletableFuture to which dependent stages can be chained. The CompletableFuture can be completed from another thread lacking the same context, but the dependent stages all run with the thread context of the thread from which they were created, per ManagedScheduledExecutorDefinition config.
      Throws:
      Throwable