Earlier we used to host client and service code on separate instances, let's say client code which consists of html, css, js is hosted on a S3 bucket while we'd launch a java based Beanstalk environment.
Now I've to ship both of them together to be hosted on a single machine, what's the industry standard, how should I go about it and configure web.xml or something else?
My web.xml looks like this.
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5">
<servlet>
<servlet-name>Service</servlet-name>
<servlet-class>com.domain.Service</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Service</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>