We have an embedded undertow server jar application, as part of this application we have customized undertow life cycle begins from deployment, listeners, filters to till the start of the application but now our requirement is made this jar file as war and deploy to wildfly + undertow. as part of this requirement, we have few technical concerns
1) can we get the existing undertow runtime which is running as a subsystem of wildfly and start our handlers?
2) is there a way to map our embedded undertow server as a subsystem of wildfly server?
can you please let us any further info required?
You can customize big part of your undertow deployment via ServletExtension api
take a look at http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#servlet-extensions for more info.
But this only allows you customizing deployment.
if you need to change also server config such as port/ssl/http2/... you would need to do so in the subsystem configuration.