two java questions, JAR and MVC, please help
1, how are .jar files used within java enterprise development?
2 if an application ha1, how are .jar files used within java enterprise development?
2 if an application has been written using MVC for the web what parts(classes) could not be reused if the application was to be transfered to a normal java swing/awt client?
s been written using MVC for the web what parts(classes) could not be reused if the application was to be transfered to a normal java swing/awt client?
# 1
1. jars are just like zip files. Java programmers usually put java classes, image files, and xml configuration files in them so we can deploy our applications as one file instead of as dozens or hundreds of files.
There are some special kinds of jar files called WAR files which contain Web applications (JSPs and Servlet), and EAR files which contain Enterprise applications (EJBs and on so).The arrangement of the contents of these files must conform to the appropriate publishes specification. Java web servers like Tomcat require web apps to be deployed as WAR files. J2EE servers like JBoss require enterprise web apps to deployed as EAR files.
Google this stuff for more info.
2. MVC means Model (the data storage), View (the visual interface), Controller (the logic that controls the behavior between the View and Model).
Theoretically an MVC web app can be converted to a desktop application by changing only the View -- but in the real world it's never that clean and simple.
I realize I'm probably doing your homework for you. But I thought I'd help out anyway. I should get some Duke Dollars or something. ;-)
In future, do some googling on the terms, try and figure it out, and come back here with more specific questions rather than just posting homework questions on the forum.
Good luck!