java pet store application. outline introduction introduction information layer information layer...

12
Java Pet Store Java Pet Store Application Application

Upload: james-byrd

Post on 24-Dec-2015

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Java Pet Store Java Pet Store ApplicationApplication

Page 2: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

OutlineOutline

• IntroductionIntroduction

• Information LayerInformation Layer

• Application LayerApplication Layer

• Infrastructure LayerInfrastructure Layer

Page 3: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

IntroductionIntroduction

• Java Pet Store is a sample E Commerce Java Pet Store is a sample E Commerce application designed by Sun application designed by Sun Microsystems Microsystems

• Designed to show how to best use the Designed to show how to best use the capabilities of the J2EE platform capabilities of the J2EE platform

• Uses various other Java Technologies to Uses various other Java Technologies to develop applications which are portable, develop applications which are portable, scalable and at the same time robust. scalable and at the same time robust.

Page 4: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Introduction (contd.)Introduction (contd.)

• Client SideClient Side

Being a J2EE application, the Java Pet Being a J2EE application, the Java Pet Store Store sample application can sample application can accommodate both accommodate both browser and Java browser and Java programmable clients. programmable clients.

• Server SideServer Side

JSP (e.g. db_failed.jsp)JSP (e.g. db_failed.jsp)

Servlets (e.g. PopulateServlet.Java)Servlets (e.g. PopulateServlet.Java)

EJBs (e.g. CustomerEJB.java)EJBs (e.g. CustomerEJB.java)

Page 5: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Information LayerInformation Layer

• Specifications for data related Specifications for data related techniques.techniques.

• Application is designed to store data Application is designed to store data in various databases. in various databases.

• Uses the Data Access Object (DAO) Uses the Data Access Object (DAO) technology.technology.

• For example CatalogDAO For example CatalogDAO

Page 6: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Application Layer Application Layer

• The website component of the application The website component of the application uses the MVC (Model View and Controller) uses the MVC (Model View and Controller) architecture design paradigm.architecture design paradigm.

• View- View- this is the presentation layer this is the presentation layer and displays the and displays the information on the GUI. information on the GUI.

• Model -Model - this is the database layer or this is the database layer or the backend the backend which also contains the information which also contains the information about the about the application. application.

• Controller- Controller- this is the business logic this is the business logic layer. This acts layer. This acts as a bridge between the view as a bridge between the view and the model layer. and the model layer.

Page 7: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Modules of the applicationModules of the application

• PetstorePetstore- Petstore module provides the ability - Petstore module provides the ability for customers to look at the pets, place order for for customers to look at the pets, place order for them and view the result of their request. them and view the result of their request.

• OPCOPC- The Order Processing Center (OPC) module - The Order Processing Center (OPC) module receives and handles the orders placed by the receives and handles the orders placed by the customers. customers.

• Supplier- Supplier- The Supplier module, which is also a The Supplier module, which is also a Web interface sits between the database and the Web interface sits between the database and the OPC. OPC.

• Administrator-Administrator- The Admin module manages the The Admin module manages the order placements and is a JFC/Swing front-end order placements and is a JFC/Swing front-end interfaceinterface

Page 8: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Infrastructure layerInfrastructure layer

• Hardware Platform-Hardware Platform- System Requirements forSystem Requirements for installing the installing the

JSDK on a Windows platform-JSDK on a Windows platform-•Pentium 166MHz or faster processor. Pentium 166MHz or faster processor.

•At least 32 megabytes of physical RAM is At least 32 megabytes of physical RAM is required to run graphically based required to run graphically based applications. applications.

•The amount of permanent hard drive space The amount of permanent hard drive space required is 120 MB. required is 120 MB.

Page 9: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Infrastructure layer (contd.)Infrastructure layer (contd.)

• Softwares-Softwares-– The java petstore application can be run on any The java petstore application can be run on any

operating system which has JVM incorporated in it.operating system which has JVM incorporated in it.

• Other softwares used in the Petstore Other softwares used in the Petstore application are-application are-– Java 2 SDK, Standard Edition (J2SE SDK), v1.4.1 or Java 2 SDK, Standard Edition (J2SE SDK), v1.4.1 or

higherhigher– Java 2 SDK, Enterprise Edition (J2EE SDK), v1.3.1 or Java 2 SDK, Enterprise Edition (J2EE SDK), v1.3.1 or

higherhigher– Application Server- Sun Java System Application Server Application Server- Sun Java System Application Server

Platform Edition 8 (included in J2EE SDK)Platform Edition 8 (included in J2EE SDK)– JVM- version 1.3.1JVM- version 1.3.1– Database Software- Cloudscape (this is the default and Database Software- Cloudscape (this is the default and

can be changed easily)can be changed easily)

Page 10: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Infrastructure layer (contd.)Infrastructure layer (contd.)

• Security ServicesSecurity Services– Web tier authenticationWeb tier authentication

• authentication mechanism defined in the application’s authentication mechanism defined in the application’s deployment descriptor. deployment descriptor.

– EJB Tier AuthenticationEJB Tier Authentication• The J2EE 1.3 platform requires EJB containers and EJB The J2EE 1.3 platform requires EJB containers and EJB

client containers to support version 2 of the Common client containers to support version 2 of the Common Secure Interoperability (CSIv2) protocolSecure Interoperability (CSIv2) protocol

– Controlling Access to Web ResourcesControlling Access to Web Resources• the security constraint can be specified in the web.xml the security constraint can be specified in the web.xml

filefile – Controlling Access to Enterprise BeansControlling Access to Enterprise Beans

• the methods of the bean’s remote, home, local, and the methods of the bean’s remote, home, local, and local home interfaces can be specified to have the local home interfaces can be specified to have the security roles invoke it.security roles invoke it.

Page 11: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Infrastructure layer (contd.)Infrastructure layer (contd.)

• Development ToolsDevelopment Tools– Java is the programming languageJava is the programming language– Code generation tools like EJBGen (version 1.20 Code generation tools like EJBGen (version 1.20

- an EJB 2.0 code generator) - an EJB 2.0 code generator) – Verification tools like Sun RI’s ‘verifier’ Verification tools like Sun RI’s ‘verifier’ – Web page development tools- HTML, XML and Web page development tools- HTML, XML and

XSL style sheets.XSL style sheets.– Modeling tools like UML for creating the use Modeling tools like UML for creating the use

cases cases

Page 12: Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer

Questions!!Questions!!

Thank youThank you