-
Notifications
You must be signed in to change notification settings - Fork 200
Web App Integration
Note: The following only applies to Enunciate 1.x. Enunciate 2 no longer generates deployment descriptors nor builds the WAR (see the Migration Guide)
You can have your own J2EE web application sit alongside the Enunciate-generated Web service application. The only issue is that you have to "merge" the web.xml
file that Enunciate generates with your own web.xml
file.
Fortunately, Enunciate provides a way to automatically merge your web.xml
file into the Enunciate-generated one:
<enunciate ...>
...
<modules>
<spring-app mergeWebXML="/path/to/my/web.xml"/>
...
</modules>
</enunciate>
By default during a merge, Enunciate puts the elements of your web.xml
file before the elements that are generated by Enunciate. But sometimes order is significant (e.g. listeners, servlets, filters, etc.).
As of Enunciate 1.29, you can tell Enunciate to put the elements after the generated elements, you can add a custom attribute to the web.xml
element, e.g.:
<web-app>
...
<filter enunciate_order="after">
...
</filter>
...
<listener enunciate_order="after">
...
</listener>
...
<servlet enunciate_order="after">
...
</servlet>
...
</web-app>