[Logo] Mentawai Recipes
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Coding your application with no coupling (0%) with Mentawai  XML
Forum Index » Official Recipes
Author Message

Joined: 10/01/2008 08:20:15
Messages: 39

The Mentawai support for POJO actions, along with its powerful filters, allows you to code a web application totally decoupled from the Mentawai framework.

For a complete example, feel free to download both versions of the MyBooks application: (use the mybooks.sql file included in the zip to create your mybooks mysql database)

MyBooks-ACTION.zip - Action and Business Model are separated. Action is coupled to Mentawai. Business Model is not coupled.

MyBooks-POJO.zip - Action and Business Model are together in a single class totally decoupled from the Mentawai framework.

Take a look below:

ACTION version:

MyBooks-ACTION ApplicationManager.java

MyBooks-ACTION BookAction.java

MyBooks-ACTION BookService.java

Now the POJO version:

MyBooks-POJO ApplicationManager.java

MyBooks-POJO BookService.java

Forum Index » Official Recipes
Go to:   
Powered by JForum 2.1.8 © JForum Team