Class ManagedThreadFactoryDefinitionOnEJBServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
ee.jakarta.tck.concurrent.framework.TestServlet
ee.jakarta.tck.concurrent.spec.ManagedThreadFactory.resourcedef.ManagedThreadFactoryDefinitionOnEJBServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
@WebServlet("/ManagedThreadFactoryDefinitionOnEJBServlet")
public class ManagedThreadFactoryDefinitionOnEJBServlet
extends TestServlet
- See Also:
-
Field Summary
Fields inherited from class ee.jakarta.tck.concurrent.framework.TestServlet
FAILURE, nl, SUCCESS, TEST_METHOD
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
void
A ManagedThreadFactoryDefinition defined on an EJB with all attributes configured enforces priority and propagates context.void
ManagedThreadFactoryDefinition defined on an EJB with minimal attributes creates threads with normal priority and uses java:comp/DefaultContextService to determine context propagation and clearing.void
ManagedThreadFactory defined on an EJB can be supplied to a ForkJoinPool, causing ForkJoinPool tasks to run with the thread context and priority as configured.Methods inherited from class ee.jakarta.tck.concurrent.framework.TestServlet
after, before, beforeClass, doGet, doPost, getResponse, invokeTest, sendPostData
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Constructor Details
-
ManagedThreadFactoryDefinitionOnEJBServlet
public ManagedThreadFactoryDefinitionOnEJBServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classjakarta.servlet.GenericServlet
- Throws:
jakarta.servlet.ServletException
-
testManagedThreadFactoryDefinitionAllAttributesEJB
A ManagedThreadFactoryDefinition defined on an EJB with all attributes configured enforces priority and propagates context.- Throws:
Throwable
-
testManagedThreadFactoryDefinitionDefaultsEJB
ManagedThreadFactoryDefinition defined on an EJB with minimal attributes creates threads with normal priority and uses java:comp/DefaultContextService to determine context propagation and clearing.- Throws:
Throwable
-
testParallelStreamBackedByManagedThreadFactoryEJB
ManagedThreadFactory defined on an EJB can be supplied to a ForkJoinPool, causing ForkJoinPool tasks to run with the thread context and priority as configured.- Throws:
Throwable
-