This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Same controller for application client and Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Same controller for application client and Browser" Watch "Same controller for application client and Browser" New topic
Author

Same controller for application client and Browser

Jim Baker
Ranch Hand

Joined: Mar 10, 2002
Posts: 177
HI
Should we use the same controller for both
Browser client and application client in partII?
If this is true, the performance for app client
would not be better.
Any comments?
jb
Bagwan Mehrat
Ranch Hand

Joined: Jan 26, 2002
Posts: 119
I won't get into specifics, but for various reasons, including nature of the networks on which the clients depend, there will be performance differences.
Srinivas Velamuri
Greenhorn

Joined: Apr 02, 2001
Posts: 28
I am not writing this specifically for part-II. In general, I think a portion of the controller shall be reusable for various "clients". Let us assume that the "main" controller consists of 'view specific controller' + 'EJB Controller'. The 'EJB controller' portion of the controller is reusable. The 'view specific' portion varies for various clients.
With this type of approach, I do not see any problem with the performance for specific types of clients.


Srinivas
Jim Baker
Ranch Hand

Joined: Mar 10, 2002
Posts: 177
What is the EJB controller? Delegate?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Same controller for application client and Browser
 
Similar Threads
Pattern for routing web client's (Servlet) request to Controller(POJO) of Swingclient
Any ideas on control session management
Part II: difference between web and application
Controller as a Singleton class in Front Controller Pattern
In MVC, JSP controller or Servlet controller, which one is better?