Class SimpleAsyncJpaServlet

  • All Implemented Interfaces:
    Servlet, ServletConfig, Serializable

    public abstract class SimpleAsyncJpaServlet
    extends JpaServlet
    Dispatches request handling to the executor associated with the configured persistence unit. This prevents requests awaiting for an available JDBC connection from blocking server threads. This way the total number of server's threads can remain constant and small regardless of the number of concurrent requests, while the JDBC connection pool will be optimally utilized.

    Base class for servlets that do not perform synchronous time consuming operations other than JPA related calls.

    See Also:
    Serialized Form