jQuery in Action, 2nd edition*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Should I design a front controller for swing component? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Should I design a front controller for swing component?" Watch "Should I design a front controller for swing component?" New topic
Author

Should I design a front controller for swing component?

Jamy Wang
Ranch Hand

Joined: Sep 21, 2003
Posts: 83
Usually we apply the front controller pattern for JSP component.
I wonder if we should apply it to swing component?

Thanks!
Best Regards


Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
Along huang
Ranch Hand

Joined: Feb 09, 2004
Posts: 72
I think that it is possible, but whether it may be used or not due to the architecture of your application. In the architecture "Swing + EJB + Database", I strongly recommend that you don't use FrontController, it will make more complex to introduce it, I perfer to use a Proxy.

But in the architecture "Swing + web + EJB + Database", it is appropriate to use FrontController as all client request data must be translate into Stream. This FrontController will communicate with another FrontController locating web tier.

best regards
[ March 24, 2005: Message edited by: Along huang ]

SCJP1.4 SCJD 2<br />SCEA(In progressing)
Jamy Wang
Ranch Hand

Joined: Sep 21, 2003
Posts: 83
Thanks. I understood what you mean and I agree with you.

Another question: Is it meaningful that we apply "application controller" and "context object" between swing client and bussiness delegate? I think bussiness delegate is too fine grain for different clients. I wanna a more coarse grain design, such as command pattern, for swing client.

How do you think about it?
Thanks.

Best Regards.
Joseph Zhou
Ranch Hand

Joined: Aug 01, 2000
Posts: 129
The front controller(delegates to application controller included) is a centralized place for view and action management. The view management of the swing client obviously should stay with the swing, the action management, should be still there, if you use http way to link the client and server side(ex: java web start).
 
 
subject: Should I design a front controller for swing component?
 
Similar Threads
SCEA Part II - Client side
How many jsps you show on component diagram?
Front Controller vs Front Component
java application client
Confusion with Design Pattern names