WELCOME Abdennour : Software engineer

Sep 11, 2012

Application Architecture [tuto 1 J2EE]

1) Application Architecture  

 
    أ) THREE-tier architecture :

   ب)  MVC Architecture(Model-Vue-Control) :

   ج)[TP]Preparation of environment(Jdk,NetBeans,Eclipse, Application Server(Tomcat,..)) : 
______________________________
What's J2EE :



Java Enterprise Edition or Java EE (formerly J2EE) is a technical specification for the Sun Java specifically designed for enterprise applications.

Jee technology allows us to use the Java language for programming Web.
(Java-> C-Sharp Equivalent J2EE -> ASP.NET)




_____   أ) THREE-tier architecture :


The architecture of the system is divided into three levels or layers:


 1/presentation layer (Desktop Presentation, Web Presentation , Mobile Presentation ..)

2/business logic layer ( here was not a framework, it is the realization of our logic design of  system )

3/data access layer( Acces aux données )


Concerning JEE technology, our 3-tier architecture is as below : 




Don't worried ,we'll see the details later إن شاء الله , but be aware that the above diagram is important because it is the Software Engineering

 architecture of JEE Application: 




Http Server :
   - Use (Apache) as Http Server . 
Application Server :
  - Use (Tomcat) As Application Server 

 Why 2 Servers and What's the difference between them?
  
  A)Http Server (Web Server): 
     -Web Servers send html pages or serve Respond to requests

    

==>Web servers generally return static content(Contenu statique). Return content from a file specified in the URL .

==>Dynamic content is provided by a program running : 

  > Program CGI: Common Gateway Interface / cgi-bin /
or
  > Servlet & JSP (This is our case: Case JEE)
or
  > ASP: For Microsoft  
or
 > ISAP: NSAPI(netscape,microsoft)



 


   B)Application Server :

  > it consists of two containers :
      1)Web Contanier(Conteneur Web et non pas Serveur Web)
       2)EjB Container



  ==>at this Step (JEE)Level 1 we will look at the web container.


the Web Container is specifically manages servlets and JSP


  (Servlet : Java Class extends javax.servlet.http.HttpServlet )
  (Jsp :file replace Html file , but if Html file is static , JSP file is dynamic   )


(Java EE server is the Application Server)
- Tomcat is an Application Server . 
 -GlassFish is an Application Server. 
 
   ب)  MVC Architecture(Model-Vue-Control) :


- We will use MVC Architecture in the presentation layer, إن شاء الله .
-MVC means Model-View-Control .
-The advantage of this framework is to clean code
-For our case( Simple JEE Application)  : 
     1)M: Model : (We will see)
     2)V: View : (JSP files)
     3)C: Control (Servlet)    

   
ج)
[TP]
Preparation of environment (Jdk,NetBeans,Eclipse, Application Server(Tomcat,..)) : 
 -So, you Should install the Following Softwares
   1>JDK : http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html ('Accept License Agreement' )
  
  2>NetBeans or Eclipse:
       http://netbeans.org/downloads/index.html
          http://www.eclipse.org/downloads/ (Choose the first : Eclipse IDE for Java EE Developers,)
  3>Application Server :Download Tomcat . 
  
             https://dl.dropbox.com/u/97534585/soft/server/apache-tomcat-7.0.27.zip

            
    
    َAfter downloading,Unzip the file : ,Watch this Video : 

Note : It's noto Tomcat but it's "Apache Tomcat". Indeed, Apache(Web Server) is included in "Apache Tomcat".
In Short , "Apache Tomcat" includes a Web Server(Apache) and an Application Server(Tomcat )   


Part1

                                           Part2  


(it's the Same thing if you use Windows ) 

36 comments:

  1. perfect explanation about java programming .its very useful.thanks for your valuable information.java training in chennai | java training center in chennai

    ReplyDelete

  2. Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing morejava training in chennai | java training institutes in chennai | java j2ee training institutes in velachery

    ReplyDelete
  3. I'll congrats with you guys, We share its quality of information!! very specific nice content. Selenium Training in Chennai | Java Training in Chennai | Java Training Institute in Chennai

    ReplyDelete
  4. Thanks a lot very much for the high quality and results-oriented help.
    I won’t think twice to endorse your blog post to anybody who wants
    and needs support about this area.


    java training in chennai


    java Training in Bangalore

    ReplyDelete
  5. You are doing a great job. You inspire me to write for other. Thank you very much. I would like to appreciate your work for good accuracy and got informative knowledge from here.Amazon Web Services Training in Chennai
    Amazon Web Services Training Institute in Chennai

    ReplyDelete
  6. Great blog.
    Thank you for written this blog regarding to core technology.This is very Helpful and informative blog.
    Mobile Application Training in Hyd
    iPhone App Development in Hyderabad

    ReplyDelete
  7. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.
    python training in chennai | python training in bangalore

    python online training | python training in pune

    python training in chennai

    ReplyDelete
  8. Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
    java training in chennai | java training in bangalore

    java online training | java training in pune

    java training in chennai | java training in bangalore

    ReplyDelete
  9. Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision. 
    python training in chennai
    python training in Bangalore

    ReplyDelete
  10. Sap fico training institute in Noida

    Sap fico training institute in Noida - Webtrackker Technology is IT Company which is providing the web designing, development, mobile application, and sap installation, digital marketing service in Noida, India and out of India. Webtrackker is also providing the sap fico training in Noida with working trainers.


    WEBTRACKKER TECHNOLOGY (P) LTD.
    C - 67, sector- 63, Noida, India.
    F -1 Sector 3 (Near Sector 16 metro station) Noida, India.

    +91 - 8802820025
    0120-433-0760
    0120-4204716
    EMAIL: info@webtrackker.com
    Website: www.webtrackker.com

    ReplyDelete
  11. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
    Microsoft Azure online training
    Selenium online training
    Java online training
    uipath online training
    Python online training

    ReplyDelete
  12. if anyone is interested to learn on congos learn on cognos through Cognos tm1 training

    ReplyDelete
  13. Thanks for sharing this useful piece of content with us...Keep updating regularly..looking forward to see your further posts.


    python training in chennai

    ReplyDelete
  14. I can’t imagine that’s a great post. Thanks for sharing.

    Looking for Software Training in Bangalore , learn from Softgen Infotech Software Courses on online training and classroom training. Join today!

    ReplyDelete
  15. Great post!I am actually getting ready to across this information,i am very happy to this commands.Also great blog here with all of the valuable information you have.Well done,its a great knowledge.student review for Realtime Experts marathahalli bangalore

    ReplyDelete
  16. Appreciating the persistence you put into your blog and detailed information you provide.
    blue prism Course Training in Chennai |Best blue prism Training Institute in Chennai

    ReplyDelete
  17. . Even the topmost enterprises also engaged students in different sectors of their firm who have done this certificate training course. cursos de ti online

    ReplyDelete
  18. Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.Best data science courses in hyerabad

    ReplyDelete



  19. Nice article and thanks for sharing with us. Its very informative


    Tableau Training in Hyderabad

    ReplyDelete
  20. Communication is a two way process. If done properly, it gives excellent result. Thus opting for the best Integrated Marketing Communication Course on Talentedge is wise. To know more visit:

    ReplyDelete
  21. Visit Bharat Go Digital Academy to learn the digital marketing skills in India.

    ReplyDelete
  22. Infycle Technologies, one of the topmost software training institutes in Chennai offers excellent Oracle PLSQL training in Chennai for freshers and students, and Tech Professionals of any field. Other demanding courses such as Digital Marketing, Java, Python, Hadoop, Selenium, Big Data, AWS, Android, and iOS Development will also be trained with complete hands-on training. After the completion of training, the students will be sent for placement interviews in the core MNC's. Dial 7504633633 to get more info and a free demo.Excellent Oracle PLSQL Training Chennai | Infycle Technologies

    ReplyDelete
  23. Extremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing.<a href="https://360digitmg.com/india/business-analytics-course-in-rohtak

    ReplyDelete
  24. I have bookmarked your site since this site contains significant data in it. You rock for keeping incredible stuff. I am very appreciative of this site.
    data analytics course in hyderabad

    ReplyDelete
  25. Well, I really appreciated for your great work. This topic submitted by you is helpful and keep sharing...
    Cheap Uncontested Divorce in VA
    Family Lawyer Cost
    Best Family Court Lawyers Near Me

    ReplyDelete