Introduction: Traditional Java EE applications typically use some kind of MVC framework (for example, Struts) as a front-end user interface, with the advent of Flex, RIA-based clients can bring users cooler interfaces, shorter response times, and closer to the experience of desktop applications. This article will describe how to integrate Flex into an existing Java EE application, and how to apply best practices to develop Java EE and Flex efficiently and concurrently.
Development environment
The development environment for this article is Windows 7 ultimate,eclipse 3.4,flex Builder 3. Java EE servers use Resin 3.2, and of course, you can also use other Java EE servers such as Tomcat.
Existing Java EE applications
Suppose we already have a Java EE application that manages employee information, called Employeemgmt-server, as shown in Figure 1:
Figure 1. Java EE Engineering Structure