System Architecture

All generated DTO classes end up either in one separate jar file or are part of another component, e.g. a web fragment jar file. For web development with JSF the DTO classes are best added to a web fragment jar file, where the XHTML files for the web pages are located as well. This works fine since the DTO classes are solely used within the user interface itself. No DTO class will be used for a method parameter for EJBs or other backend-components that live outside of a web fragment jar or a web application war file.