THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
final Tomcat server = new Tomcat(); server.setPort(<port>); final File base = createTemporaryDirectory(); server.setBaseDir(base.getAbsolutePath()); server.getHost().setAppBase(base.getAbsolutePath()); server.getHost().setAutoDeploy(true); server.getHost().setDeployOnStartup(true); server.addWebapp(<context path>, <path to WAR folder/file>); server.start(); |
Future work
The Apache CXF team is committed to improve the CDI integration and to cover more deployment scenarios and wide range of application configurations and demands.