The Business Logic

Though we have moved a good portion of the business logic out of the table browser application, we still have some business logic exposed. The menu action code which executes the queries using the remote DAO is hardcoded with the queries to execute. A subsequent refactoring of the application should move this code to a remote object and load the queries from a location where they could be changed without having to alter the program code (for instance, a properties file or as a parameter object in a naming service).

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.