Basic terminologies for a developer

12
Basic terminologies in Java and Web Development

description

Deals with the basic terms which must be known to every Java/Web developer. (Hands-on)

Transcript of Basic terminologies for a developer

Page 1: Basic terminologies for a developer

Basic terminologies in Java and Web Development

Page 2: Basic terminologies for a developer

JDK and JRE

What is this PATH variable?

Servers and Containers

Eclipse

Creating a web project using Eclipse – JSP

Page 3: Basic terminologies for a developer

Java is the language – Library + Platform ◦ Java Card ◦ Micro Edition ◦ Standard Edition ◦ Enterprise Edition

JDK is the library ◦ The set of classes & tools (javac, java)

JRE is the platform ◦ VM that executes Java bytecode. ◦ How does the JVM know where the classes are?

Page 4: Basic terminologies for a developer

Environment variables – Named values that affect the way running processes behave. ◦ Provides a standard way for accessing commonly used

processes. ◦ Eg: Temp files, Java

Where could we see the list of all ENV vars?

CRUD on ENV variables.

PATH – Specifies a set of directories where executable programs are located. ◦ Order of search – Current working directory PATH

variable (left to right) ◦ Sample – Batch script

%CLASSPATH%

Page 5: Basic terminologies for a developer

Servers serve the requests from other programs.

Depending on the computing service ◦ Database server

◦ File server

◦ Mail server

◦ Web server!

◦ Application server

Page 6: Basic terminologies for a developer

Web server – Deliver webpages on request from clients. Eg: Apache, IIS, Nginx

General usage : A web browser / web crawler initiates communication by making request to a specific resource, server responds with content of that resource (HTML Document)

Features : ◦ Virtual Hosting ◦ Bandwidth Throttling – fair share ◦ Server side scripting

Page 7: Basic terminologies for a developer

Currently nginx is in the second position.

Page 8: Basic terminologies for a developer

Modularization!

An interface between the component and the low-level-platform specific functionality.

Eg: Web Container, EJB container

Web Container (Servlet container) Web servers ◦ Interacts with the servlets

Roles of Web Container ◦ Lifecycle of servlets

◦ Mapping a URL to a servlet

◦ Access rights to an URL

Page 9: Basic terminologies for a developer

Web server (with a web container)

Difference between apache and apache tomcat. ◦ Apache is C

◦ Tomcat is Java

Tomcat is configurable – server.xml

Three Components ◦ Catalina – servlet container

◦ Coyote – HTTP Connector Component

◦ Jasper – JSP Engine (converts JSP files to servlets for Catalina)

Check Tomcat server startup.

Latest version in Tomcat 7.0.26

Page 10: Basic terminologies for a developer

Web Servers + Java EE concepts

Security, Data Services, Transaction Support, Persistence Support, Load Balancing etc.

Eg: WebLogic Oracle, IBM WebShere

Check JBoss AS

Page 11: Basic terminologies for a developer
Page 12: Basic terminologies for a developer

Exercise : Quiz website

Time : 15 mins

Completion : Not mandatory