主权项 |
1. A method comprising:
receiving, by a processing device, a request from a client for an application associated with a specific servlet; and responsive to determining that the specific servlet is not running, converting a previously instantiated generic servlet into the specific servlet by the processing device, the converting comprising:
assigning the generic servlet from a servlet pool for the specific servlet, the generic servlet comprising search logic;renaming the generic servlet based on a name of the application;querying, using the search logic, a java naming directory interface (JNDI) for specific service logic associated with the specific servlet;receiving a reference to the specific service logic from the JNDI; andupdating the generic servlet to include at least one of the specific service logic or the reference to the specific service logic. |