Detect names of servlets from web.xml
kathrynkodama opened this issue · 1 comments
With the j2eemangement
feature no longer being supported for Jakarta EE 9, we need a new way to detect the names of servlets when multiple applications are deployed and we must inject multiple servlets.
See these tests for example uses: https://github.com/OpenLiberty/liberty-arquillian/tree/master/liberty-managed/src/test/java/io/openliberty/arquillian/managed/needsmanagementmbeans
We should get the web.xml
file from the WebArchive and use that to determine the servlet names.
We should also be scanning web-fragment.xml
files, see https://github.com/arquillian/arquillian-core/blob/2f91caf4b992470d4e73ab6f5941aaaf5f0e4a8b/protocols/servlet-jakarta/src/main/resources/org/jboss/arquillian/protocol/servlet5/v_5/web-fragment.xml