File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes Different views of J2EE application ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Different views of J2EE application ?" Watch "Different views of J2EE application ?" New topic
Author

Different views of J2EE application ?

Mishaal Khan
Ranch Hand

Joined: Aug 21, 2008
Posts: 61
Main reason for using MVC design pattern as wriiten in books generally is :

" If application is being used by different types of client i.e browser, PDA,cell phones,desktop application etc. Data access logic cannot be mixed with view as every cleint type has differnt data access logic ,so we need to write different versions of application of every client type ,thats why MVC pattern is used in such cases to separate view from data access logic."

I just want to know what format of view is used by PDA or cell phones clients for a J2EE application,for example clients using browser will have HTML or JSP page,client using desktop application will see SWING pages probably jar file.What format is used by other clients?

Also,how come data access logic for cliens using BROWSER (JSP Page) or DESKTOP application is not same?

Trying to write a J2EE application using MVC design pattern,so these basic comes in mind.

Thanks.
Prabhat Jha
Ranch Hand

Joined: Aug 13, 2007
Posts: 58
Think about it, when you are using a Desktop application you dont have a container which comes in between the client and the model.

If its a web based solution then you can actually provide security features before getting to the modal using container but not the same for Desktop application.


Thanks,
Prabhat
SCJP 1.5, SCWCD 1.5, SCBCD 1.5
Mishaal Khan
Ranch Hand

Joined: Aug 21, 2008
Posts: 61
Ok that makes sense,but two more question ,

- data access and mofify logic reamins the same for all client types?

- as between desktop and web application container is the major difference.So whats the major difference between web app client and PDA /Cell phones clients?
Joe Matthew
Ranch Hand

Joined: Jun 10, 2008
Posts: 66
Hello Mishaal,

On the first question, yes! If it done properly.

Second one, web client talks HTTP where as cellphone/PDA (WAP) may not be using the same exact communication as IE. There are server or containers which are capable handling both protocols.


Regards,<br />Joe<br /> <br />"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live."<br />--Martin Golding
Mishaal Khan
Ranch Hand

Joined: Aug 21, 2008
Posts: 61
Thanks Joe.

So when any kind of client once get connected to application server using different protocols, the logic used in model is same for any type of client for data access and modification as Data access logic is independent of client type ?
 
wood burning stoves
 
subject: Different views of J2EE application ?