0% found this document useful (0 votes)
27 views6 pages

Java Technologies II Teaching Guidelines

The document outlines a 90-hour course on Java Technologies-II (Web Based Java) with 46 hours of classroom lectures and 44 hours of lab sessions. The objective is to introduce students to Java technologies. The course covers topics like servlets, JSP, JavaBeans, design patterns, Hibernate, Spring and testing. Evaluation includes exams and assignments based on implementing sample applications using the covered technologies.

Uploaded by

parag
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views6 pages

Java Technologies II Teaching Guidelines

The document outlines a 90-hour course on Java Technologies-II (Web Based Java) with 46 hours of classroom lectures and 44 hours of lab sessions. The objective is to introduce students to Java technologies. The course covers topics like servlets, JSP, JavaBeans, design patterns, Hibernate, Spring and testing. Evaluation includes exams and assignments based on implementing sample applications using the covered technologies.

Uploaded by

parag
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ACTS, Pune

Suggested Teaching Guidelines for


Java Technologies-II (Web Based Java)–PG-DAC August 2018
Duration: 46 classroom hours + 44 lab hours (90 hrs)

Objective: To introduce the student to Java Technologies

Prerequisites: Knowledge of object oriented programming

Evaluation method: Theory exam– 40% weightage


Lab exam – 40% weightage
Internal exam– 20% weightage

List of Books / Other training material

Text Book:
1. Core and Advanced Java, Black Book by Dreamtech Press .

Reference:
1. Java 8 Programming Black Book by Dreamtech Press
2. Core Java : Fundamentals - Volume 1 Gary Cornell, Cay S. Horstmann/ Pearson
3. Programming in Java by Sachin Malhotra, Saurabh Choudhary / Oxford University Press
4. Core Java : Advanced Features - Volume 2 Gary Cornell, Cay S. Horstmann/ Pearson
5. Beginning Java 2 by Ivor Horton; Wrox Publication
6. The Complete Reference Java Eight Edition, Herbert Schidt/ TMH
7. Object-Oriented Analysis and Design with applications by Booch
8. Core Java 8 for Beginners by Sharanam Shah, Vaishali Shah / Shroff Publishers &
Distributors
9. Murach’s Java Programming 4th edition by Joel Murach / Shroff Publishers &
Distributors
10. Advanced Java programming by Uttam K Roy / Oxford University press
11. Sun Certified Enterprise Architect For Java EE Study Guide by Cade, 2nd Edition
(Paperback)
12. Programming in Java by Sachin Malhotra, Saurabh Choudhary / Oxford University Press
13. Professional Java EE Design Patterns by Murat Yener, Alex Theedom, Reza
Rahman (Paperback)

PG-DAC, Java Technologies Page 1 of 6


ACTS, Pune

Suggested Teaching Guidelines for


Java Technologies-II (Web Based Java)–PG-DAC August 2018
Session 1: J2EE Overview

Lecture
 J2EE Container
 Packaging Web applications
 J2EE compliant web application
 Deployment tools.
 Web application life cycle
 Deploying web applications.
 Web Services Support

Session 2,3,4

Lecture
 Servlets : Dynamic Content Generation
 Advantages of Servlets over CGI
 Servlet Life cycle
 Servlet API & Deployment
 Servlet Annotations
 The Servlet interface
 The HttpServlet, HttpServletRequest, HttpServletResponse
 Exception Handling
 Servlet , DAO , POJO DB Layers
 Session
 Session Management
 Session Tracking with
o Cookies
o HttpSession
 Request Dispatcher
 Page Navigation
 Complete Case study Servlet Based

Assignment – Lab:
Implement exception handling in Servlet.
Use Java Servlets technology in designing and implementing an Air Ticket reservation system.
Incorporate Sessions in the Air Ticket reservation system.
Assignment – Reading:
Know more about the HTTP protocol at [Link]
Assignment – Tutorial:
Compare which way of session tracking is better Cookies or HttpSession.

Session 5:
Lecture
 Internationalization and Localization: Basics
 Read and set the locale by using the locale object
 Create and read Properties file

PG-DAC, Java Technologies Page 2 of 6


ACTS, Pune

Suggested Teaching Guidelines for


Java Technologies-II (Web Based Java)–PG-DAC August 2018

 Build a resource bundle for each locale and load a resource bundle in an application

Assignment – Lab:
Deploy structured web application.

Session 6 & 7:
Lecture
 JSP: Separating UI from Content generation code
 MVC architecture
 Life cycle of a JSP page
 Directives, Implicit and Explicit Objects, Scriptlets, Expressions, Expression Language
 Scope
 JSP Error Page handling
 Session Tracking
 JSP Using JavaBeans
 Custom Actions and Tag Libraries in JSP

Assignment – Lab:
Separate UI code from the controller code in your Air Ticket reservation system by incorporating
JSP and Servlets. Complete the implementation of Air-ticket reservation system

Session 8 :
Lecture
JavaBeans
 JavaBean Component
Model of MVC architecture

 Writing JavaBeans Components


 Properties
 Methods
 Events
 JavaBeans Component Design Conventions
 Creating and Using a JavaBeans Component
 Setting JavaBeans Component Properties
 Retrieving JavaBeans Component Properties
 JSP Using JavaBeans

Assignment – Lab:
1. Creating a Project by Simple Bean code
2. Implement MVC based web application using servlet, JSP, JavaBeans

Session 9 & 10 : JNDI , Annotations ,Transaction Management


Lecture

 JNDI API
 JNDI Overview
 Java Annotations : Purpose, Basics, Annotation Elements
PG-DAC, Java Technologies Page 3 of 6
ACTS, Pune

Suggested Teaching Guidelines for


Java Technologies-II (Web Based Java)–PG-DAC August 2018

 Retention Policy
 Built-in Annotations
 Java Custom Annotations
 Using Custom Annotation
 Transaction Management
 Transaction Timeouts , Transactions in Web Components
 Transactions and Concurrency
 Transaction Management example

Assignment – Lab:
Develop Courier Tracking system implementing annotation.

Session 11:
Lecture
 Design Patterns in Java: Overview, Usage, Types of Design Patterns
 Creational: Factory, Singleton, Builder, Prototype
 Structural: Adapter, Composite, Proxy, Facade, Bridge, Decorator
 Behavioral: Template method, Mediator, Chain of
Responsibility,Observer,Strategy,Command,State,Visitor
 MVC Pattern, Data Access Object Pattern
 Front Controller Pattern
 Service Locator Pattern
 Transfer Object Pattern

Assignment – Lab:
Develop candidate examination system implementing above design pattern.

Session 12 & 13:


Lecture
 Apache Maven: Overview, Environment Setup, Ant vs Maven
 POM, Build Life Cycle, Build Profiles
 Maven Repository
 Create, Build and Test Project & Build Automation
 Manage Dependencies, Deployment Automation

Assignment – Lab:
Configure Apache Maven in web application.
Develop a web application using Apache Maven.

Session 14 & 15:


Lecture
 Hibernate Framework
o Introduction to Hibernate Framework
o Architecture
 Hibernate in IDE
o Creating web application using Hibernate API
PG-DAC, Java Technologies Page 4 of 6
ACTS, Pune

Suggested Teaching Guidelines for


Java Technologies-II (Web Based Java)–PG-DAC August 2018
o Life-cycle of Hibernate Entities
 HB with annotation example
 Hibernate Mappings and Relationships
 Collection and Component Mapping
 HQL ,Named Queries , Criteria Queries
 Introduction to Struts 2 Architecture
 Building web pages using Struts 2 , Action Classes & Interceptors

Assignment – Lab:
Develop a web application (Online Bookshop) using Hibernate Persistence

Study Hibernate architecture from [Link]/docs

Session 16 :
Lecture
 Introduction to JSF 2.0
 Discussion on benefits of JSF
 JSF UI component model
 JSF Architecture
 Life cycle of a JSF
 First application of JSF
 Introduce basic JSF Tags
 Various Navigation methods
 JSF Event Handling
Assignment – Lab
 Create simple JSF applications for practice.
 Create a test JSF application to test all navigation

Session 17 & 18 :
Lecture
 Overview of Spring4/5 Architecture.
 AOP Overview
 Spring Modules Overview
 Spring MVC architecture
 Understanding Spring 4 annotations
 Spring Application
 Spring in IDE
 Spring in Eclipse
 Dependency Injection
Assignment Reading
Understand key features of Spring Architecture & design simple Java application to test
dependency injection.

Session 19 & 20:


Lecture
PG-DAC, Java Technologies Page 5 of 6
ACTS, Pune

Suggested Teaching Guidelines for


Java Technologies-II (Web Based Java)–PG-DAC August 2018

 What is IoC(Inversion of Control)


 IOC container
 Dependency Injection
 Spring AOP
 AOP Concepts
 Spring ORM
 Spring MVC
 Model, Model & View , HandlerMapping, ViewResolver, Front Controller
 Deployment of web application using Spring MVC Form with CRUD, File Upload
example
 Integration of Spring MVC with Hibernate
 Spring Boot Basics , Overview & Demo
Assignment – Lab
Design & deploy online stock trading system using spring MVC module
Modify earlier assignment to support persistence via Hibernate

Session 21 & 22:


Lecture
Building REST services with Spring
 Introduction to web services
 SOAP Vs RESTful web services
 RESTful web service introduction
 Create RESTful web service in java using Spring framework
 RESTful web service JSON example
 RESTful web service CRUD example
 AngularJS and Spring based RESTful web service CRUD Integration

Assignment – Lab
Design & deploy online stock trading system using spring MVC module
Modify earlier assignment to support persistence via Hibernate

Session 23:
Lecture

 Testing in Spring
 Unit Testing of Spring MVC Controllers:
 Unit Testing of Spring Service Layer
 Integration Testing of Spring MVC Applications: REST API
 Unit Testing Spring MVC Controllers with REST

Assignment – Lab
Design & test Spring Application.

PG-DAC, Java Technologies Page 6 of 6

Common questions

Powered by AI

The JSF UI component model allows developers to build interfaces with reusable components, manage state server-side, and use event-driven programming. This model supports integration with external APIs and libraries, which aids in creating rich, interactive web applications with less effort compared to traditional approaches .

Design patterns like Factory, Singleton, and Adapter provide tested and proven solutions for common programming problems. The Factory pattern helps in creating objects without specifying the exact class, Singleton ensures a class has only one instance, and Adapter allows incompatible interfaces to work together. These patterns enhance code reusability, scalability, and maintainability, leading to more robust applications .

RESTful web services are defined by their statelessness, use of JSON or XML for data interchange, and HTTP methods like GET, POST, PUT, DELETE for operations. In contrast, SOAP is a protocol with strict standards, uses XML, and typically involves more overhead. RESTful services offer simplicity, ease of integration with web technologies, and are designed for internet-scale applications .

The life cycle of a JSP page includes the phases of translation (JSP is converted into a servlet), compilation (servlet is compiled), initialization (via jspInit() method), execution (via _jspService() method), and destruction (via jspDestroy() method). This life cycle ensures that JSP is converted to executable code efficiently while allowing dynamic content generation and management .

Key features of Hibernate include its ORM capabilities which map Java classes to database tables, automatic SQL generation, database independence, simplified data retrieval and manipulation using HQL, and robust performance through techniques like caching and lazy loading. These features make Hibernate suitable for simplifying database interactions in Java applications .

The MVC architecture separates an application into three interconnected components: the Model, View, and Controller. This separation facilitates management of complex applications by decoupling the data access logic (Model), the UI logic (View), and the control logic (Controller), allowing for more modular and maintainable code .

Apache Maven streamlines the project build process with its project object model (POM), dependency management, and standard life cycles. It automates complex tasks, integrates various plugins, and ensures consistency across teams, which enhances productivity and reduces configuration errors in Java web applications .

Dependency Injection (DI) in Spring is a design pattern used to inject external dependencies into classes, thus decoupling object creation from business logic. DI allows for greater flexibility between components, facilitates unit testing, and enhances configuration management, making application maintenance easier .

Annotations in Hibernate provide a direct and intuitive way to define metadata directly in the source code, making it easier to manage and understand entity mappings. Annotations can reduce the possibility of errors compared to XML configurations, simplify code maintenance, and improve readability by keeping configurations close to the business logic .

Servlets offer several advantages over CGI, including improved performance due to the use of threads instead of heavy-weight processes, the ability to maintain session data across multiple requests, and ease of integration with other Java APIs and services .

You might also like