patterns to make architecture of the client-tier for rich client (Swing)
Joined: Dec 06, 2005
I am thinking about to make architecture of client-tier of my J2EE application. And have some problem to begin. There is a lot information about JSP or Servlets, but I found only litte information/examples about what patterns are suited to make the client artitecture for rich (fat) client (Swing-Application). The application should be data managing tool (the user recieves some forms to create data, can save it, cann call this data, can edit this data). I have read about Front Controller. But only examples that i found was Servlets or JSP Can this pattern be applied to the rich-client? Or what is the alternative for this? Are there another patterns that I can use to create the architecture of the client tier? Have you met maybe some examples of the client architecture for rich-client?
Any help are appreciated! Elena [ July 04, 2006: Message edited by: Elena Taube ]
Joined: Jan 29, 2003
The web based Front Controller is an adaptation of the earlier Model View Controller. You can build a pretty darned good MVC on Java Swing. Google on "Java MVC" and see what you find. There are many flavors and variations. Feel free to post your observations on how they differ and we can talk about how to choose one over another.
If you have an EJB back end some of the Sun J2EE patterns will apply nicely, too. Where they talk about a servlet container being the client for an EJB container you'll have a fat client instead, but you can still use client side designs like Service Locator, Business Delegate, etc. I guess those patterns would work well enough with any kind of back end, but the details would be different.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi