Testing J2EE Application Clients
J2EE application clients are like regular Java applications. They
contain a main() method that is executed, and they continue executing until
the client virtual machine terminates. They can be run as typical "fat client"
applications, to display a GUI that connects to a set of enterprise beans
for persistence and business logic, or as server applications that provide
services over the network. However, a J2EE application client has several
advantages over regular Java applications, because it runs within a lightweight
server container. This container can provide the application client with services
that used to be available only to other J2EE components.