Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.



Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this


  2. 2. TO DAYS LECTURE CONTAINS <ul><li>EVOLUTION OF J2EE </li></ul><ul><li>J2EE ARCHITECTURE </li></ul><ul><li>COTAINERS AND COMPONENTS </li></ul><ul><li>J2EE APIS </li></ul>
  3. 3. COMPUTER REVOLUTIONS <ul><li>Computer Applications innovating at unprecedented space </li></ul><ul><li>MS Office with itsWord processing and Spread sheet became vital office tool, dramatically increased productivity in almost all offices and Industries </li></ul><ul><li>Next came Network Revolution ; Computer networking bridged disparate systems giving right business soln with instant connectivity across the globe </li></ul><ul><li>Introduction of Java came up de facto language of Internet with its platform independency,security,with automatic garbage collection facilities. </li></ul><ul><li>Latest came J2EE platform which introduced Java to server side Enterprise computing </li></ul><ul><li>With the advent of XML and new Java APIS,like JDBC,RMI,JNDI,JMS etc new platforms for Enterprise integration has arrived.Under this category comes </li></ul><ul><li>IBM-----WebServer BEA-----WebLogic 7.0 APPACHE----Tomcat 6.0 </li></ul>
  4. 4. ENTERPRISE APPLICATION <ul><li>An application used by more than one person conducting transactions concurrently on a unified platform for 24 hrs a day ,7days a week without any down time.Instantaneous Resource demand at office,home,on train and on board flight is common now a days. </li></ul><ul><li>Uses J2EE architecture using distributed resources like DMSs across network shared with many applications </li></ul><ul><li>J2EE is frame work for developing multi tiered distributed application model offering highly secured scalable web centric services </li></ul>
  5. 5. Evolution of J2EE Architecture <ul><li>Single Tier (Monolithic code) </li></ul>Presentation Logic+Business Logic +Data Access Logic Data Base MF Dt Dt
  6. 6. Single Tier (Mainframe-based) ? Dumb terminals are directly connected to mainframe ? Centralized model (as opposed distributed model) ? Presentation, business logic, and data access are intertwined in one monolithic mainframe application
  7. 7. Single-Tier: Pros & Cons ? Pros: – No client side management is required – Data consistency is easy to achieve ? Cons: – Functionality ( presentation, data model, business logic intertwined), makes difficult for updates and maintenance and code reuse
  8. 8. Two Tier <ul><li>When PC with comp power came,two tier thick client evolved </li></ul>Presentation Logic+ Business Logic Data Access Logic Data Base C C C S Client/Server Architecture
  9. 9. Two-Tier
  10. 10. Two-Tier: Pros & Cons ? Pro:– DB product independence (compared to single-tier model) ? Cons: business logic and data access logic are intertwined (at client side), difficult for updates and maintenance – Data Model is “tightly coupled” to every client: If DB Schema changes, all clients break – Updates have to be deployed to all clients making System maintenance nightmare – DB connection for every client, thus difficult to scale Raw data transferred to client for processing causes high network traffic
  11. 11. 3 Tier presentation Business Data Access Data Base C C AplnServr S S C Data Base Data Base
  12. 12. 3Tier Evolution In three tier ,client asks for resource available not in one server but in many servers and implemented in application sever . When the Internet took off, the three tier model takes a very radical transformation in which HTML browser talks to a Web server, which then talks to backend database or enterprise information systems. A four tier model evolved. Separating presentation logic into a separate tier diff types of presenting interfaces can access same business logic .Mobiles ,laptops can access Data base without any change in access logic.Separation of functionality allows each tier to be written by separate developer group.RAD
  13. 13. Internet Formulation S H H H ISP(L) R R R R R R R ISP(Reg) H H S S ISP(NL) Subnet Home PC Company Network Satellite
  14. 14. 4-Tier J2EE Client tier Component component component Web Tier Component component component EJB Tier Component component component EIS Tier Component component component request response Business tier Data access tier COMPNENT BASED TECHNOLOGY 21
  15. 15. J2ee application runs on 3 m/s
  16. 16. J2EE CONTAINERS archi
  17. 17. Client Server Communications
  18. 18. J2EE is End-to-End Solution
  19. 19. J2EE Takes services From..
  20. 20. J2EE Jogical Architecture J2EE Server Server,Cotainer &Components Web Container Servlet JSP Web Services Java Mail JMS JAXP JAAS JNDI JDBC JTA Connectors JAX-RPC SAAJ Application Contaner Application Clients JMS JAXP JAAS JDBC Java Mail JMS JAXP JAAS JNDI JDBC JTA Connectors JAX-RPC SAAJ Applet Container Applet Database T Enterprise Java Beans EJB CONTAINER request response request response JMS JAXP JAAS JDBC Business Services
  21. 21. Architecture J2EE Internet Application Go back
  22. 22. J2EE an End to End Architecture
  23. 23. Enterprise Applications Things that make up an enterprise application – Presentation logic (how client asks server & how server sends information – Business logic (Business rules of the application) – Data access logic (and data model) – System services provided by CONTAINERS The evolution of enterprise application a continuous procs framework reflects– How flexibly you want to make changes
  24. 24. J2EE Components <ul><li>J2EE applications are made up of components. A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and that communicates with other components. The J2EE specification defines the following J2EE components: </li></ul><ul><li>Application clients and applets are components that run on the client. </li></ul><ul><li>Java Servlet and JavaServer Pages (JSP ) technology components are web components that run on the server. </li></ul><ul><li>Enterprise JavaBeans (EJB ) components (enterprise beans) are business components that run on the server. </li></ul><ul><li>J2EE components are written in the Java programming language and are compiled in the same way a </li></ul>archi
  25. 25. The runtime portion of a J2EE product. A J2EE server provides EJB and web containers. Enterprise JavaBeans (EJB) container Manages the execution of enterprise beans for J2EE applications. Enterprise beans and their container run on the J2EE server. Web container Manages the execution of JSP page and servlet components for J2EE applications. Web components and their container run on the J2EE server. Application client container Manages the execution of application client components. Application clients and their container run on the client. Applet container Manages the execution of applets. Consists of a web browser and Java Plug-in running on the client together J2EE server archi
  26. 26. J2EE Connector Architecture The J2EE Connector architecture is used by J2EE tools vendors and system integrators to create resource adapters that support access to enterprise information systems that can be plugged in to any J2EE product. A resource adapter is a software component that allows J2EE application components to access and interact with the underlying resource manager of the EIS. Because a resource adapter is specific to its resource manager, typically there is a different resource adapter for each type of database or enterprise information system. The J2EE Connector architecture also provides a performance-oriented, secure, scalable, and message-based transactional integration of J2EE-based web services with existing EISs that can be either synchronous or asynchronous. Existing applications and EISs integrated through the J2EE Connector architecture into the J2EE platform can be exposed as XML-based web services by using JAX-RPC and J2EE component models. Thus JAX-RPC and the J2EE Connector architecture are complementary technologies for enterprise application integration (EAI) and end-to-end business integration. j2ee
  27. 27. JAAS The Java Authentication and Authorization Service (JAAS) provides a way for a J2EE application to authenticate and authorize a specific user or group of users to run it. JAAS is a Java programing language version of the standard Pluggable Authentication Module (PAM) framework, which extends the Java 2 Platform security architecture to support user-based authorization .
  28. 28. Java Naming and Directory Interface The Java Naming and Directory Interface       (JNDI) provides naming and directory functionality. It provides applications with methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes. Using JNDI, a J2EE application can store and retrieve any type of named Java object. J2EE naming services provide application clients, enterprise beans, and web components with access to a JNDI naming environment. A naming environment allows a component to be customized without the need to access or change the component's source code. A container implements the component's environment and provides it to the component as a JNDI naming context . A J2EE component locates its environment naming context using JNDI interfaces. A component creates a javax.naming.InitialContext object and looks up the environment naming context in InitialContext under the name java:comp/env . A component's naming environment is stored directly in the environment naming context or in any of its direct or indirect subcontexts. A J2EE component can access named system-provided and user-defined objects. The names of system-provided objects, such as JTA UserTransaction objects, are stored in the environment naming context, java:comp/en v. The J2EE platform allows a component to name user-defined objects, such as enterprise beans, environment entries, JDBC DataSource objects, and message connections. An object should be named within a subcontext of the naming environment according to the type of the object. For example, enterprise beans are named within the subcontext java:comp/env/ejb , and JDBC DataSource references in the subcontext java:comp/env/jdbc . Because JNDI is independent of any specific implementation, applications can use JNDI to access multiple naming and directory services, including existing naming and directory services such as LDAP, NDS, DNS, and NIS. This allows J2EE applications to coexist with legacy applications and systems. For more information on JNDI, see The JNDI Tutorial :
  29. 29. Java Transaction API The Java Transaction API (JTA) provides a standard interface for demarcating transactions. If your application performs two separate database access operations that depend on each other, you will want to use the JTA API to demarcate where the entire transaction, including both operations, begins, rolls back, and commits
  30. 30. JDBC API The JDBC API lets you invoke SQL commands from Java programming language methods. You use the JDBC API in an enterprise bean when you override the default container-managed persistence or have a session bean access the database. With container-managed persistence, database access operations are handled by the container, and your enterprise bean implementation contains no JDBC code or SQL commands. You can also use the JDBC API from a servlet or a JSP page to access the database directly without going through an enterprise bean. The JDBC API has two parts: an application-level interface used by the application components to access a database, and a service provider interface to attach a JDBC driver to the J2EE platform
  31. 31. Java API for XML Processing JAXP The Java API for XML Processing (JAXP) supports the processing of XML documents using Document Object Model (DOM), Simple API for XML (SAX), and Extensible Stylesheet Language Transformations (XSLT). JAXP enables applications to parse and transform XML documents independent of a particular XML processing implementation. JAXP also provides namespace support, which lets you work with schemas that might otherwise have naming conflicts. Designed to be flexible, JAXP lets you use any XML-compliant parser or XSL processor from within your application and supports the W3C schema. You can find information on the W3C schema at this
  32. 32. JAF The JavaBeans Activation Framework (JAF) is included because JavaMail uses it. JAF provides standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and create the appropriate JavaBeans component to perform those operations
  33. 33. Enterprise contd-  <ul><li>A Typical enterprise application includes </li></ul><ul><li>presentation logic , </li></ul><ul><li>b usiness logic , </li></ul><ul><li>data access logic , </li></ul><ul><li>system services provided by containers </li></ul><ul><li>The presentation logic deals with how to present information to the end-users. </li></ul><ul><li>The business logic includes the business rules of the application. </li></ul><ul><li>And the data access logic deals with accessing data in the back-end database. </li></ul>
  34. 34. / <ul><li>Microsoft provides .NET Framework.Fully controlled by Microsoft supports all languages that ARE SUPPORTED BY WINDOWS </li></ul><ul><li>Sun provides Platform independent J2EE,STRUT and supports single language ie.JAVA </li></ul>
  35. 35. Java API for XML-Based RPC The Java API for XML-based RPC (JAX-RPC) uses the SOAP standard and HTTP, so client programs can make XML-based remote procedure calls (RPCs) over the Internet. JAX-RPC also supports WSDL, so you can import and export WSDL documents. With JAX-RPC and a WSDL, you can easily interoperate with clients and services running on Java-based or non-Java-based platforms such as .NET. For example, based on the WSDL document, a Visual Basic .NET client can be configured to use a web service implemented in Java technology, or a web service can be configured to recognize a Visual Basic .NET client. JAX-RPC relies on the HTTP transport protocol. Taking that a step further, JAX-RPC lets you create service applications that combine HTTP with a Java technology version of the Secure Socket Layer (SSL) and Transport Layer Security (TLS) protocols to establish basic or mutual authentication. SSL and TLS ensure message integrity by providing data encryption with client and server authentication capabilities. Authentication is a measured way to verify whether a party is eligible and able to access certain information as a way to protect against the fraudulent use of a system or the fraudulent transmission of information. Information transported across the Internet is especially vulnerable to being intercepted and misused, so it's very important to configure a JAX-RPC web service to protect data in transit.
  36. 36. System Services <ul><li>Services include presentation logic, business logic, data access logic, and system services. </li></ul><ul><li>The presentation logic deals with how to present information to the end-users. </li></ul><ul><li>The business logic includes the business logic of the application. </li></ul><ul><li>The data access logic deals with accessing data in the back-end database. </li></ul><ul><li>The system services includes security, caching, logging, transaction, and other services that typical enterprise application would use .Now the way the enterprise application framework evolves reflects how flexibly you want to make changes in the presentation logic, business logic and data access and data models.. </li></ul>
  37. 37. J2EE Operation
  38. 38. JSP->Bean->EJB EJB -> Bean -> JSP JavaBeans component manage the user input and send that input to enterprise beans running in the business tier for processing.
  39. 39. J2EE Appln
  40. 40. J2EE Components <ul><li>J2EE web components are : Servlets, JSP pages </li></ul><ul><li>J2EE business components are: Beans & EJBs </li></ul><ul><li>Servlets are Java programming language classes that dynamically process requests and construct responses. </li></ul><ul><li>JSP pages are text-based documents that execute as servlets but allow a more natural approach </li></ul><ul><li>JavaBean component is to manage the user input and send that input to enterprise beans running in the business tier for processing </li></ul><ul><li>Enterprise bean receives data from client programs and beans, processes it (if necessary), and sends it to the enterprise information system tier for storage. An enterprise bean also retrieves data from storage, processes it (if necessary), and sends it back to the client program. </li></ul>
  43. 43. EJB CONSTITUENTS There are three kinds of enterprise beans: session beans, entity beans , and message-driven beans . A session bean represents a transient conversation with a client. When the client finishes executing, the session bean and its data are gone. In contrast, an entity bean represents persistent data stored in one row of a database table. If the client terminates or if the server shuts down, the underlying services ensure that the entity bean data is saved. A message-driven bean combines features of a session bean and a Java Message Service (JMS) message listener, allowing a business component to receive JMS messages asynchronously
  44. 44. EJB Customer Bean Order Bean Shopping cart Bean Application A Customer Bean Order Bean Shopping cart Bean Inventory Bean Bean Application B Written by X Written by Y Enterprise beans are building blocks that can be used alone or with other enterprise beans to execute business logic on the J2EE server.
  45. 45. Enterprise Computing
  46. 46. What Is the J2EE? Open standard based platform for  developing, deploying and managing  n-tier, Web-enabled, server-centric, and component-based enterprise platform J2EE, In short, is an open standard, development and deployment platform for building n-tier, web-based and server-centric, and component-based enterprise applications.
  47. 47. Evolution of Enterprise Application Framework ? Single tier ? Two tier ? Three tier ? Four tier (HTML browser and Web server ) For Distributed point to point communication two technologies are involved – RPC based – Remote object based
  48. 48. Three-Tier (RPC based)
  49. 49. Three-tier (RPC based): Pros & Cons Pro:– Business logic can change more flexibly than 2- tier model ? Most business logic reside in the middle-tier server ?Cons:– Complexity is introduced in the middle-tier server – Client and middle-tier server is more tightly coupled (than the three-tier object based model) – Code is not really reusable (compared to object model based)
  50. 50. REMOTE PROCEDURE CALL(RPC) <ul><li>Main() </li></ul><ul><li>{.. </li></ul><ul><li>Get_data() </li></ul><ul><li>… } </li></ul>Get_data() {a=b+c; … . If(a=0) … } Physical Network RPC client software RPC server software
  51. 51. OBJECT REQUEST BROKER (ORB) <ul><li>Main() </li></ul><ul><li>{Object a </li></ul><ul><li>a.Get_data(); </li></ul><ul><li>… } </li></ul>Object a {Get_data() {a=b+c; … . If(a=0) … }} Physical Network ORB client software ORB server software
  52. 52. Three-Tier (Remote Object based)
  53. 53. Three-tier (Remote Object based): Pros & Cons ? Pro: – More loosely coupled than RPC model – Code could be more reusable ? Cons: – Complexity in the middle-tier still need to be addressed
  54. 54. Java Message Service API The Java Message Service (JMS) API is a messaging standard that allows J2EE application components to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous
  55. 55. Three-Tier (Web Server)
  56. 56. Three-tier (Web Server based):Pros & Cons ? Pro: – Ubiquitous client types – Zero client management – Support various client devices ? J2ME-enabled cell-phones ? Cons: – Complexity in the middle-tier still need to be addressed Trends ? Moving from single-tier or two-tier to multitier architecture ? Moving from monolithic model to objectbased application model ? Moving from application-based client to HTML-based client So based on this evolution, we can observe a few trends. First, moving from a single tier or two-tier model to multi-tier model. Second, moving from the monolithic code to object-based application model. Lastly, HTML browser based clients are taking some strong hold. 03/19/2007
  57. 57. Web Server based:Pros & Cons Trends ? Moving from single-tier or two-tier to multitier architecture ? Moving from monolithic to objectbased application model ? Moving from application-based client to HTML-based client
  58. 58. Distributed Computing Environment S C C C C S C C C AplnS S S S Single tier Two tier Three tier
  59. 59. Java Script/JS in HTML pages HTML file with the embedded with jsp executes remotely in the server and results sent to user imn html page client Server HTML file URL HTTP Requests with… Web server Web Browser URLs that address other Web services (telnet malito etc) HTML file with the embedded Java script executes locally with the browser and interacts with the user Urls that address the scriptincluding jsp asp Script Scipt receives browser info performs required processing and returns rersults to browser. (Dynamic web page) user script/jsp Files accessible to servers url addressing these files (static webpages)
  60. 60. Server Side Computing… <ul><li>Basically Internet application are based on Client/Server architecture and Java with its net centric features has evolved as de facto language of Internet. </li></ul><ul><li>Sun’s J2EE &BEA Web Logic server introduced Java intensively to server side Enterprise computing </li></ul>
  61. 61. SIMPLE J2EE Model II Architecture
  62. 62. Monolithic vs. Object-based
  63. 63. J2EE 1.4 APIs and Technologies ? J2SE 1.4 (improved) ? JNDI Java Naming and Directory Services ? JMX 1.1 Api for XML mesage ? J2EE Deployment ? JMS 1.1 Java Messaging Services ? JTA 1.0 Java Transactions ? JSP 2.0 Servlet 2. ? JavaMail 1.3 ? EJB 2.1 ? Connector 1.5 For Main frame ,ERP and Legacy Systems ? JACC Java Authentication . ? JAF 1.0 Java Bean Aithentication Framework ? JAXP 1.2 For XML Processing
  64. 64. Container & Components <ul><li>As for the relationship between components and containers, as you might have guessed it, the components are running within containers. That is, the containers provides the host execution environments for the components. The types of components within J2EE environment are •Client components that are running on client either as a stand-alone or applet </li></ul><ul><li>• JSP or servlet as web components running inside webtainer </li></ul><ul><li>EJB beans as business components running inside EJB container And developers are responsible for the implementation of these components. On the other hand, the containers are provided by the platform vendors </li></ul><ul><li>. Containers provide runtime system services such as life-cycle management of the components, transaction coordination, persistence management, resource pooling The containers are also responsible for providing the APIs,and the distributed communication protocols, shown in brown In a typical multi-tier, thin client enterprise application, most of the development effort will be focused on building web-tier components at web-tier and enterprise Java beans at EJB tier.. </li></ul>
  65. 65. j
  66. 66. Java Mail API J2EE applications use the JavaMail API to send email notifications. The JavaMail API has two parts: an application-level interface used by the application components to send mail, and a service provider interface. The J2EE platform includes JavaMail with a service provider that allows application components to send Internet mail
  67. 67. What are Java Servlets? <ul><li>Servlets are Java technology's answer to CGI programming. They are programs that run on a Web server and build Web pages on the fly. </li></ul><ul><li>The Web page is based on data submitted by the user. For example the results pages from search engines are generated this way, and programs that process orders for e-commerce sites do this as well. </li></ul><ul><li>The Web page uses information from corporate databases or other such sources. For example, you would use this for making a Web page at an on-line store that lists current prices and number of items in stock. </li></ul>
  69. 69. Advantages of Servlet Over &quot;Traditional&quot; CGI <ul><li>Java servlets are more efficient, easier to use, more powerful, more portable, and cheaper than traditional CGI . </li></ul><ul><li>Efficient. In traditional CGI, a new process is started for each HTTP request. With servlets, the Java Virtual Machine stays up, and each request is handled by a lightweight Java thread, not by heavyweight operating system process as in traditional CGI , if there are N simultaneous request to the same CGI program, then the code for the CGI program is loaded into memory N times. With servlets, however, there are N threads but only a single copy of the servlet class. </li></ul><ul><li>Convenient. A servlet is a java class ,so it has an extensive infrastructure for automatically parsing and decoding HTML form data, reading and setting HTTP headers, handling cookies, tracking sessions, and many other such utilities. </li></ul><ul><li>Powerful. Java servlets harness full power of Java like networking,URL accessing multithreading,object serialisation and RMIetc </li></ul><ul><li>Servlets can also share data among each other, making useful things like database connection pools easy to implement. They can also maintain information from request to request, simplifying things like session tracking and caching of previous computations. </li></ul><ul><li>Portable. Servlets are written in Java and follow a well-standardized API. Consequently, servlets written for, say I-Planet Enterprise Server can run virtually unchanged on Apache, Microsoft IIS, or WebStar. Servlets are supported directly or via a plugin on almost every major Web server. </li></ul><ul><li>Inexpensive. </li></ul>
  70. 70. JSP and itsAdvantages <ul><li>Java Server Pages (JSP) is a technology that lets you mix regular, static HTML with dynamically-generated HTML. Tag based language. </li></ul><ul><li>JSP can do every thing that in principle , a Servlet does . </li></ul><ul><li>But it is more convenient to write (and to modify!) regular HTML than to have a zillion println java statements that generate the HTML. </li></ul><ul><li>Plus, by separating the look from the content you can put different people on different tasks: your Web page design becomes RAD </li></ul>
  71. 71. Lifecycle of a JSP CLient Web Server Request Response <HTML> </HTML> JVM <%b&ya ;; a 012(*2 … . JSP compiler First call of this JSP <%page language … %> <HTML>… </HTML> Subsequent calls to this JSP service() method of the called.which already inside Compile the JSP into a temporary servlet The servlet now needs to be compliled. Import Public class … Servlet compiler Bytecode
  72. 72. J2EE Constituents <ul><li>J2EE Constituents </li></ul><ul><li>Java 2 Platform, Enterprise Edition: A platform from Sun for building distributed enterprise applications. </li></ul><ul><li>J2EE services are performed in the middle tier between the user's machine and </li></ul><ul><li>the enterprise's databases and legacy information systems. </li></ul><ul><li>Its core components are </li></ul><ul><li>JavaServer Pages (JSPs) and </li></ul><ul><li>Java servlets and a variety of interfaces for linking to the information resources in the enterprise. </li></ul><ul><li>Enterprise JavaBeans (EJBs), </li></ul><ul><li>J2EE APIsinclude </li></ul><ul><li>JDBC for databases, </li></ul><ul><li>JNDI for directories, </li></ul><ul><li>JTA for transactions, </li></ul><ul><li>JMS for messaging, </li></ul><ul><li>JavaMail for e-mail systems and </li></ul><ul><li>IDL for CORBA connectivity. </li></ul>
  73. 73. EJB
  74. 74. Web Tier and J2EE Applications the web tier includes JavaBeans components to manage the user input and send that input to enterprise beans running in the business tier for processing.
  75. 75. Business and EIS Tiers Enterprise bean receives data from client programs, processes it (if necessary), and sends it to the enterprise information system tier for storage. An enterprise bean also retrieves data from storage, processes it (if necessary), and sends it back to the client program
  76. 76. VARIOUS APIS IN J2EE Java Mail : AP enables Java Mail programmers / Clients to communicate by sending e-mail message use order confirmation. JMS : Java Message Service allows components to send and release asynchronous messages provides their own API for messages. API is used to build into Java Programmes a trans message link between components. JAXP : API supports passing of XML documents using DOM (Document Object Model). A simple API for XML style sheet language for transformation (XSLT). JAAS : API provides security (Java Authentication and Authentication) Imposes authentication and authorization checks on users. JNDI : API provides directory service by which J2EE components can be requested and discovered. Objects can be locates in various on servers. API provides standout namely conventions so that programmers can look up objects from Java programs. JDBC : API enables programmes to connect to and interact when practically all databases.
  77. 77. J2EE APIS Building Multier Applications Client EJB Servlet JSP JNDI JTA JTS Data Dase Application Sever Tag Lib using XML Data Dase
  78. 78. MVC Architecture Client Data Dase ModelView Controller Architecture Data Dase Controller (Servlet) Req process Data validation Model Business Logic Data Manipulation View (JSP) Response Generation
  79. 79. Model I -Architecture Session EJB Servlet or JSP Client EntityEJB DB request response A single Servlet or JSP processes a HTTP request
  80. 80. MVC… <ul><li>MVC is suitable for Web development </li></ul><ul><li>MODEL:Seperates View from contoller </li></ul><ul><li>provides Interface to Data access and manipulation (Java Beans,Entity EJB) </li></ul><ul><li>VI|EW:Uses any viewing technology like (HTML,JSP) </li></ul><ul><li>CONTROLLER:Receives requests from application manages flow of data between model layer and view layer uses SERVLET </li></ul>
  81. 81. Model II Architecture Servlet DB request response Once servlet has verified HTTP request and obtained necessary data to formulate response,request is forwarded to a JSP for generating a web page whichis returned to client as response . Client Session EJB EntityEJB JSP Request forwarded contoller view
  82. 82. Type 1: JDBC-ODBC Bridge driver
  83. 83. Type 2: Native-API/partly Java driver
  84. 84. Type 3: All Java/Net-protocol driver
  85. 85. PROJECT DEVELOPMENT TIPS <ul><li>Know Core Java Then learn J2EE components ie. JSP,Servlet and Java APIs like JDBC,RMI,JNDI etc </li></ul><ul><li>Learn OOAD for Translating complex business requirements to reusable objects </li></ul><ul><li>For client side front end design ,learn a web editor like Front Page,Dream weaver.For this learn HTML,Java script for DHTML </li></ul><ul><li>For server side interaction,learn JSP and Servlet,Java Beans and EJB.Also XML for B2B communication </li></ul><ul><li>Learn communication protocols like HTTP,TCP/IP,DNS programming using sockets,ports an Java APIs </li></ul>
  86. 86. THANKING YOU