1 / 12

Modern Software Technologies

Modern Software Technologies. Java ™ , J2EE ™ , JSP ™ , JDBC ™ by Radoslav Tr. Ivanov - 12835. Java ™ language J2SE ™ & J2EE ™ Business Systems J2EE ™ Platform. J2EE ™ components: JSP ™ Servlets ™ JDBC ™ & EJB™ Web Servers for J2EE ™ Resources. Contents.

Download Presentation

Modern Software Technologies

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Modern Software Technologies Java™, J2EE™, JSP™, JDBC™ by Radoslav Tr. Ivanov - 12835

  2. Java™ language J2SE™ & J2EE™ Business Systems J2EE™ Platform J2EE™ components: JSP™ Servlets™ JDBC™ & EJB™ Web Servers for J2EE™ Resources Contents

  3. The Java™ language”... write once, run anywhere …” • History –1991 “Oak”- microprocessors ; • Necessityof platform independence ; • Advantages – suitable for WEB • OOP-multi-platform, secure, simple and clear; • inheritance, polymorphism, classification • no need for garbage-collecting, • near to “C++” ; • Disadvantages – slow ;

  4. A Java Program: From Birth to Execution • Coding -Human-readable Java code is produced by the programmer • Building - A Java Development Tool "build"s the Java program into byte-code, which is saved as a ".class" file. • Loading - Via the web or command line, the class file is sent to the Java Virtual Machine (VM) with an attached digital signature. The Java VM is simply an interpreter. • Bytecode Verification -The Java VM verifies the digital signature. • Isolation - When downloaded remotely, the Java VM isolates the Java program in a restricted part of memory. The Java program is not allowed to access local Hard drives and System resources. • Internal Integrity - Verification checks are made to insure that the loaded Java program is well formed. Data types are verified along with other syntax structure • Execution - Program execution begins

  5. Java™, J2EE™, JSP™, JDBC™ • J2SE™ & J2EE ™ • Business Systems • Client   Server (DB) 2-tier ; • Client  Application Sever  Server (DB) 3 tier ; • N-tier ;

  6. The Middle Tier • Business logic • Presentation logic

  7. J2EE Platform • J2EE components: • Servlets™, JSP™, EJB™, JDBC™ etc. • Java Servlets. • Common with CGI ; • Life cycle of Servlets -init(), service(), destroy() ; • Advantages – good for Business logic; • Disadvantages – It’s not suitable for web design;

  8. Java Server Pages ™ • Advantages over ASP™, PHP™, Servlets • Life cycle – converted to Servlet; • Tags • <%-- “JSP comments”--%> • “<%! “Declarations” %>” ; • “<% “Code” %>” - Scriptlets; • “<%= ‘dynamic expression’ %>” - Expressions; Example: <HTML>Current time: <%=new java.util.Date()%”> </HTML>

  9. Java Server Pages ™ • Possible creating of new “<tags>” • MyTags.tld – file of tags Example: <%@ taglib=“path to MyTags.tld”%> • Suitable for locale independence

  10. EJB™ & JDBC™ • Java Data Base Connectivity (API) -(driver) – implemented classes and methods for managing Data Base ( Informix, MySQL, Oracle etc.) • EJB™ – Enterprise Java Beans™ Example – shopping card

  11. Web Servers for J2EE™ • Orion –http://www.orionserver.com • Jakarta TomCat ™http://jakarta.apache.org/ • Apache™ – http://apache.org/

  12. Resources • http://java.sun.com • http://java.sun.com/docs • http://www.javaworld.com • http://www.sun.com • http://java.sun.com/j2ee • http://java.sun.com/j2ee/tutorial • http://developer.java.sun.com/ • http://www.javacoffeebreak.com/tutorials/

More Related