java - Deploying servlets webapp in embedded undertow -


is there easy way deploy servlets web application undertow embbeded?

for example, jetty, can deploy this:

    server server = new server(8080);     webappcontext context = new webappcontext();     context.setcontextpath("/");     context.setdescriptor("src/main/webapp/web.xml");     context.setresourcebase("src/main/webapp/");     server.sethandler(context);     server.start(); 

is there similar way of doing undertow? saw example here: https://github.com/undertow-io/undertow/blob/master/examples/src/main/java/io/undertow/examples/servlet/servletserver.java, it's not exaclty want, registers servlets 1 one...

not @ moment.

undertow provides builder api, application can use build servlet. deliberate design choice gives embedding application full control of deployment.

we may add support in different module (most ripping relevant code out of wildfly), not high on priority list @ moment.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -