You are on page 1of 32

INTRODUCTION :

J2EE 1.6 is a powerful platform; however ,we may still find it difficult to start an application with the help of this platform. At times, even small enterprise applications need a lot of code , which needs to be reduced. You can reuse the code of an application in another application , which reduces time and effort .In addition, we can encapsulate the complexity of code by providing a set of APIs to the programmers. Therefore , the main objective of j2ee is to provide Java programmers a set of classes and interfaces that reduces development time and application complexity, thereby improving the performance of the application. J2EE is capable of meeting the requirements of different users in an organization, such as customers , suppliers, and employees, by providing various functionalities and services. For example, J2EE focuses on making the development of enterprise applications easier by supporting annotation and Plain Old Java Objects (POJOs) , reducing the need of Deployment Descriptors, enhancing Web Services and supporting technologies , such as Asynchronous JavaScript and XML(Ajax).

J2EE 6 APIs :

Java Servlet :
The Java servlet technology allows us to create HyperText Transfer Protocol specific servlets, which extend the capabilities of the server hosting applications. The servlet are accessed with the help of request-response programming model. A new version of the java servlet technology is introduced in J2EE platform i.e Java Servlet 3.0, which has the following features :

Provides asynchronous support i.e the ability to receive or send data to a client without blocking data Provides the use of annotations for Web applications instead of using deployment descriptors Provides support for Web framework pluggability which simplifies the task of plugging different Web frameworks in a web appalications,depending on the needs of the programmers Provides enhancements to existing servlet 2.5 APIs

JavaSever pages :
The JSP technology lets you to integrate java code with HyperText Matkup Language(HTML) in a text-based document. A JSP pages is a textbased document that contains :

Static template data that can be represented in a text based format such as HTML,Wireless Markup Language(WML) or XML JSP elements that can be used to display dynamic content on a web page

Java Server Pages Standard Tag Library :

JSTL provides a set of standard tags that can be used in a JSP page by embedding Java Code. JSTL includes various tags to control the flow of execution of an application , to support internationalization, and to access a database by using Structured Query Language(SQL). An application using JSTL tags can be deployed on any JSP container that support the tags.

Java Database Connectivity API :


The JDBC API helps to execute SQL commands from java programs. We can use the JDBC API with enterprise beans, servlets, jsp and java classes to interact with a database. The JDBC API contains application level interfaces and service provider interfaces . Application-level interfaces are used by application components to access the database, while service provider interfaces helps to associate the JDBC driver with the J2EE platform .

Application Servers :
An application server is a program that provides the business logic for an applications. In other words the application server provides a GUI to run three-tier applications. The application server acts similar to an extended virtual machine used to run applications and handle database transactions . In java platform the term application server sometimes refers to the J2EE platform. The following are noteworthy application server used to deploy J2EE applications :

Web Logic Application Server :


This server owned by Oracle ,serves as the server software application

that runs on the middle tier. It include connectors so that a client can interoperate with various servers applications and EJB components .

WebSpehere Application server :

This server owned by IBM, is built by using open standards , such as J2EE,XML, and WebSevices . it works with various web servers,such as Apache HTTP server,Netscape Enterprise server and Microsoft Internet Information Srvices.

JBOSS Application Server :

The JBoss application server, owned by JBoss, is an open source java EE based application server. It allows you to package ,deploy, and run various Java EE applications developed by using Java EE related technologies ,such as EJB,JSP,JSF and Hibernate. JBoss AS 5.1 is the latest version of the JBoss application server .

SOFTWARE USED:

jboss-4.2.2.GA

Eclipse-jee-europa-winter-win32(version 3.2.2) ORACLE Database 10g XE XDoclet 1.2.3

PROBLEM STATEMENT
JPG Engineering College Site For Admission And Student Maintenance JPG Engineering College is a famous college in Kolkata. They deliver engineering programs on different skills like Civil, Comp Sc., Mechanical etc. For every streams of engineering they conduct special admission test where the eligibility criteria is greater than 60% in 10+2 based exam and age should be within 17-19 years till the date of form fill-up. The college maintains a complete database for the admission process. The admission form has these followings Candidates name: Guardians Name: Fathers name: Mothers name: Postal address City/Village: Pin code: Telephone/mob no.: Every admission form must have an auto-generated unique identification number. Every stream is uniquely identified by stream-no. followed by title, duration, total fees mode of payment etc. Each stream has a max intake of 40 students. Based on CET where passing marks is 70% a student can take admission on any of the stream discussed above. On admission each student gets unique auto-generated roll no. & other information like session, total-fees, amount paid, pending amount etc. The student who has chosen installment mode of payment must pay his/her fees every month. The college maintains a report where student-wise or month-wise projection will be displayed.

Table of Contents:
OBJECT ORIENTED ANALYSIS AND DESIGN->Pg:9 USE CASE DIAGRAM->Pg:10 THE USE CASE SPECIFICATIONS->Pg:11-15 UC01: User Log in UC02: Enter Applicants Info and Generate admit Card UC03: Enter CET Marks Of The Applicants UC04: Generate Admission List UC05: Enter Admission Details And Generate Student DetailsUC06: Enter/Update Payment Details UC07: View Projection IDENTIFYING CLASS CANDIDATES AND ATTRIBUTE CANDIDATES->Pg:16-19 o Nouns and Noun phrases identified from UC01: User Log in Nouns and Noun phrases identified from UC02: Enter Applicants Info and Generate admit Card Nouns and Noun phrases identified from UC03: Enter CET Marks Of The Applicants Nouns and Noun phrases identified from UC04: Generate Admission List Nouns and Noun phrases identified from

UC05: Enter Admission Details And Generate Student Details Nouns and Noun phrases identified from UC06: Enter/Update Payment Details Nouns and Noun phrases identified from UC07: View Projection

CONCEPTUAL CLASS DIAGRAMS->Pg:20-23

Conceptual class diagram based on UC01 Conceptual class Diagram based on UC02 Conceptual class diagram based on UC03 Conceptual class diagram based on UC04 Conceptual class diagram based on UC05 Conceptual class diagram based on UC06 Conceptual class diagram based on UC07

DOMAIN LEVEL CLASS DIAGRAM->Pg:24 SEQUENCE DIAGRAM->Pg:25-31 DESIGN LEVEL CLASS DIAGRAM->Pg:32

OBJECT ORIENTED ANALYSIS AND DESIGN


The following stake-holders and users have been identified after going through the given case study of JPG Engineering College Stake-holders: Applicants Administrator JPG Engineering College Student Users: Administrator

The user goals for the administrator are->


Getting Registered

Enter Applicants Info and Generate admit Card Enter CET Marks Of The Applicants Generate Admission List Enter Admission Details And Generate Students Details Enter/Update Payment Details View Projection

USE CASE DIAGRAM

Generate admission list

Enter admission details & generate student details

Enter Applicants CET marks Enter/Update payment details Enter Applicants Info & generate Admit card View projection Administrator <<extends>> Login Student wise <<extends>>

Department wise

10

USE CASE SECIFICATION UC01: User Log in Level: user goal. Scope: JPG Engineering College. Preconditions: Must be administrator Primary Actor: Administrator Success Guarantee: The Administrator can avail the services offered by the
JPG Engineering College

Stake-holders & their interests:


Administrator: wants to avail the services offered by the JPG Engineering College. (Add, Update, Delete of the students details). JPG Engineering College: wants to give secure and quality services that can be availed by the registered -users(The person who have valid user id) only.

Main success scenario:


1Administrator enters his user ID in the JPG Engineering College automation system. 2.System validates the user id 3.System displays the menu(options as per user) according to the user id.

Extension(s):
2.a)invalid User input( User ID): b)System displays error message. c)System displays main menu to the customer.

UC02: Enter Applicants Info and Generate admit Card


Level: user goal Scope: JPG Engineering College Precondition: The applicant must have minimum of 60% in 10+2 board exam Primary Actor: Administrator, system Success Guarantee: The applicants all academic and personal details will be entered into college database and Who Are Eligible For Admission Test ,will Be Given Admit Cards. Stake-holders and interests: Administrator: wants to enter all the details of all the applicants in order to check among of those who are eligible for the admission test. Applicants: Wants to get the admit cards for the admission test. JPG Engineering College: wants to generate the admit cards of the applicants for the test.

11

Main Success Scenario: 1. Administrator inputs the details of the applicants.. 2. System validates the inputs 3. System prompts for registration confirmation 4. Administrator confirms Registration 5. System generates the admit card for the eligible applicants with auto-generated unique id no. Extension(s): 2a)Invalid applicants details 1. System displays error message 2. Main menu is displayed 4a) Administrator cancels registration 1. Main menu is displayed.

UC03: Enter CET Marks Of The Applicants


Level: user goal Scope: JPG Engineering College Precondition: A registered applicants. Primary Actor: Administrator Success Guarantee: The administrator will enter the students unique admit cards roll number along with the marks scored by the students. Stake-holders and interests: Administrator: Wants to enter the marks of the students in CET exams JPG Engineering College: To ensure users satisfaction Main Success Scenario: 1. The administrator will enter the students admit card roll number. 2. The system will ask for the students CET marks. 3. The administrator will enter the marks. 4. The system displays a message data successfully entered. Extension(s): 2a) invalid Administrator input: 1 . System displays error message. 2 . System displays menu to the Administrator 3a)System fails to update students details1. Error message is generated 2. Main menu is displayed

UC04:Generate Admission List


Level: user goal

12

Scope: JPG Engineering College Precondition: All the Students CET marks are entered to the system by the administrator. Primary Actor: System Success Guarantee: The System will generate admission list which consists of the top 40 students of each stream who have scored minimum of 70% marks in the CET exam . Stake-holders and interests: Applicant: Wants to check the admission list whether he/she is able to get admitted in the college. Administrator : Wants to check the applicants who can get admission in the college. JPG Engineering College: To ensure users satisfaction Main Success Scenario: 1. Administrator enters applicants CET marks. 2. System generates admission list 3. The list is displayed to the administrator and all the applicants. Extension(s): 1a)System fails to generate admission list. 1. Error message is generated 2. Main menu is displayed

UC05: Enter Admission Details And Generate Students Details


Level: user goal Scope: JPG Engineering College Precondition: Admission list is displayed by the system, The student must be admitted and all its details must be in the college database Primary Actor: Administrator, System Success Guarantee: The administrator will enter the students admission details, stream and payment scheme i.e. whether he/she is paying fees monthly or half yearly. The students shall get auto-generated roll no. ,session, total fees, amount should be paid at the time of admission, pending amount. Stake-holders and interests: Administrator: Wants to enter students details JPG Engineering College: Generate the students details and To ensure users satisfaction. Applicant : Wants to get auto-generated roll no. session, total fees, amount should be paid at the time of admission, pending amount. Main Success Scenario: 1. The administrator will enter the students admission details, stream and payment scheme i.e. whether he/she is paying fees monthly or half yearly.

13

2.The System will generate students roll no. ,session, total fees, amount should be paid at the time of admission, pending amount.

Extension(s): 2a)Invalid students details 1. Error message is generated 2. Main menu is displayed 3a)System fails to register students details: 3. Error message is generated 4. Main menu is displayed.

UC06: Enter/Update Payment Details Level: user goal. Scope: JPG Engineering College. Preconditions: All the students details must be in the college database Primary Actor: System Success Guarantee: The administrator will enter the students admission
details, stream and payment scheme i.e. whether he/she is paying fees monthly or half yearly. The amount students need to pay at the time of admission, and the pending amount. After each payment the system will store how much amount is pending and when they have to pay. Stake-holders & their interests: Administrator: Wants to enter students details JPG Engineering College: The system will generate the amount students need to pay at the time of admission, and the pending amount. After each payment the system will store how much amount is pending and when they have to pay. Applicant : wants to know about his current payment status, fees payment date, how much amount is pending and when they have to pay.

Main success scenario:


1Administrator enters his user ID in the JPG Engineering College automation system. 2.System validates the user id 3. The system will generate the amount students need to pay at the time of admission, and the pending amount. After each payment the system will store how much amount is pending and when they have to pay

Extension(s):
2.a)System displays error message. b)System displays main menu to the customer.

14

UC07: View Projection Level: user goal. Scope: JPG Engineering College. Preconditions: All the students details must be in the college database Primary Actor: System Success Guarantee: The system will generate how much college is getting
from students, how much it gets in a month and how much it gets from each department in a year. Stake-holders & their interests: JPG Engineering College: wants to know how much college is getting from students, how much it gets in a month and how much it gets from each department in a year.

Main success scenario:


1.The system will generate how much college is getting from students. 2. The system will generate how much it gets in a month 3. The system will generate how much it gets from each department in a year. 4. Keep all this record in the college data base.

Extension(s):
2.a)System displays error message. b)System displays main menu to the customer.

15

IDENTIFYING CLASS CANDIDATES AND ATTRIBUTE CANDIDATES


Nouns and Noun phrases identified from UC01:User Login
User User ID JPG Engineering College Error message Class candidates User( Administrator) JPG Engineering College Attribute candidates user ID Error message

Nouns and Noun phrases identified from UC02:Enter Applicants Info and Generate Admit Cards
JPG Engineering College Administrator Applicants Applicants Details Admit cards Admission Test Unique ID Number Error message Class candidates JPG Engineering College Attribute candidates Admit cards Admission Test Unique ID Number Error message

Applicants Administrator

Applicants Details

16

Nouns and Noun phrases identified from UC03 : Enter CET Marks Of The Applicants
JPG Engineering College Administrator Applicants CET Marks Unique Admit Roll No. Error Message Class candidates JPG Engineering College Administrator Applicants Attribute candidates Error Message

Unique Admit Roll No. CET Marks

Nouns and Noun phrases identified from UC04: Generate Admission List
JPG Engineering College Administrator Applicants CET Marks Stream Admission list Error Message

Class candidates JPG Engineering College

Attribute candidates Error Message Stream CET Marks

Applicants Administrator

17

Nouns and Noun phrases identified from UC05: Enter Admission Details and Generate Students Details
JPG Engineering College Administrator Admission list Student Admission details payment scheme Roll no. Session Total fees Payment Scheme Pending amount Error Message

Class candidates JPG Engineering College

Attribute candidates Admission list

Administrator Student

Admission details Roll no. Session Total fees Payment Scheme Pending amount

Nouns and Noun phrases identified from UC06: Enter/Update Payment Details
JPG Engineering College Administrator Student Total fees Payment Scheme

18

Pending amount Error Message

Class candidates JPG Engineering College Student

Attribute candidates Error Message Total fees Payment Scheme Pending amount

Administrator

Nouns and Noun phrases identified from UC07:View Projection


JPG Engineering College Administrator Student Payment Scheme Error Message

Class candidates JPG Engineering College

Attribute candidates Error Message

Student Administrator

Payment Scheme

19

CONCEPTUAL CLASS DIAGRAMS


CONCEPTUAL CLASS DIAGRAM BASED ON UC01
Administrator Admin_id Admin Password JPG Engineering College Admin Details

Logs In
1 1

UCO1:LOGIN
CONCEPTUAL CLASS DIAGRAM BASED ON UC0
JPG Engineering College Admin Details Applicants Details
1

Registered with

Administrator Admin ID Admin Password

1 1 *

Insert Applicants Details

Applicants Applicants' details name Guardian Name Address Ph number

UC02:Enter Applicant's Info and Generate Admit Cards

20

CONCEPTUAL CLASS DIAGRAM BASED ON UC03


JPG Engineering College Admin Details Applicants Details

Administrator Admin ID Admin Password


1

Registered With
1 1

Insert applicants details and CET marks


*

Aplicants Admit_id CET marks

UC03:GENERATE ADMISSION LIST

CONCEPTUAL CLASS DIAGRAM BASED ON UC04

Administrator Admin ID Admin Password


1

Registered With
1 1

JPG Engineering College Admin Details Applicants Details

Get qualified applicants list


*

Aplicants Admit_id CET marks

UC04:GENERATE ADMISSION LIST

21

CONCEPTUAL CLASS DIAGRAM BASED ON UC05

Administrator Admin ID Admin Password


1

Registered With
1 1

JPG Engineering College Admin Details Student Details' Payment Details


1

Insert Student Details Has


* *

Student
Name Stream Session CET marks *

Stream Enrolled in
* 1 Stream_id Max_intake duration Total Fees

Is A Type Of

Applicants applicants detail

UC05:ENTER ADMISSION DETAILS AND GENERATE STUDENT DETAILS

22

CONCEPTUAL CLASS DIAGRAM BASED ON UC06


Registered with
1 1 1

Administrator Admin Details

JPG Engineering College Admin Details Student Details Payment Details


1

Insert Student Details

Maintains
*

Student Payment Scheme Total fees Pending Amount

Payment
Payment Scheme Total Payment Pay Date pay For

UC06:ENTER/UPDATE PAYMENT DETAILS

CONCEPTUAL CLASS DIAGRAM BASED ON UC07


JPG Engineering College Admin Details Student Details Payment Details Stream Details
1

Stream Has
1 * STREAM ID STREAM NAME MAX INTAKE TOTAL FEES DURATION

Administrator Admin Details


1 1

Registered with
1

Insert Student Details


*

Maintains
*

Student Roll no. Session Total fees Payment Scheme Pending amount

Payment
Payment Scheme Payment ID Pyament date Pay For

UC07:VIEW PROJECTION

23

DOMAIN LEVEL CLASS DIAGRAM


JPG Engineering College Student Details Admin Details Stream Details Payment Details Stream Stream ID Duration * Total Fess Max Intake

Administrator Admin ID admin Password


1

Registered With
1 1 1

Has
1

Insert Details
*

Controls
1 1

Student Name Guardian's name Address Ph No. Stream Roll no

Administrator Controller admin Details

Maintains

Is a type of Applicant Applicant Details

Payment Payment Given Date of next payment Date of admission due Payment

DOMAIN LEVEL CLASS DIAGRAM

24

SEQUENCE DIAGRAMS:

Administrator:a dmin

Adminsitrator Interface:ai

Administrator Controller:AdminController

JPG Engineering college:jpg college

1: Ask for user name &pwrd 2: Enter name & pswd 3: Login 4: validate Login

5: Return Confirmation 6: Return Confiramation

7: Show home page or Error page

LOGIN

25

Administrato t:admin

Administrator Intreface:ai

Administrator Controller:admin controller

JPG Enginnering college:jpg college

1: Ask for applicant details 2: Enter Details 3: validate form

4: Insert App Detials 5: Insert Applicant Details 6: Generate Admit card info 7: Admit card details or Error message 8: return admit details or Error 9: Show admit card or error page

ENTER APPLICANT DETAILS AND GENERATE ADMIT CARD

26

Administrato r:admin

Administrator interface:ai

Administrator Controller:ac

JPG Engineering College:jpg college

1: prompt to enter marks 2: Enter App ID and marks 3: validate marks 4: Check and insert marks 5: Insert marks

6: Return Confirmation 7: Return Confirmation 8: Return confirmation and promt to enter again

ENTER CET MARKS

27

Administrato r:admin

Administrator interface:ai

Administrator Controller:ac

JPG Engineering College:jpg college

1: Ask to generate list 2: List generation request 3: Ask to generate list 4: Generate List 5: Return list 6: Return list 7: Show List

GENERATE ADMISSION LIST

28

Administrato r:admin

Administrator interface:ai

Administrator Controller:ac

JPG Engineering College:jpg college

1: Ask for Admission details 2: Enter Details 3: validate inputs 4: Insert Details 5: Insert Admission details

7: Return Student details 8: Student Details 9: Show Student details

6: Generate Student details

ENTER ADMISSION DETAILS AND GENERATE STUDENT INFO

29

Administrato r:admin 1: Ask for Student ID

Administrator interface:ai

Administrator Controller:ac

JPG Engineering College:jpg college

2: validate ID 3: Check Id and request Details 4: Get Stud pay options 5: Search ID and generate Stud pay option 6: Send details 7: Send Details 8: Show pay option and ask for month or sem

9: Enter month or sem 10: Confirm Submittion 11: Enter payment details 12: Insert Pay Details 14: Return Confirmation 13: Return Confirmation

15: Show Confirmation

ENTER PAYMENT DETAILS

30

Administrato r:admin

Administrator interface:ai

Administrator Controller:ac

JPG Engineering College:jpg college

1: Ask for Projection option

2: Enter Details 3: Send projection request and details 4: Get projection Stats 5: Generate projection stats 6: Return Stats 7: Retrun Projection Stats 8: Show Projection

VIEW PROJECTION

31

DESIGN LEVEL CLASS DIAGRAM

Administrator
Administrator_ID Administrator Password setadmin_id() setPsw() login() req-generate list() get Stud_ID() GetAdmission Details() GetCETMarks() InsertApp_details() InsertStud Details() 1

Administrator Controller
Admin Details show error() show admission list() validate Stud_ID() getStud Pay_Details() getPay_Option() Show_conformaton() Validate Marks() Validate form() Show Admit_card() ShowStudDetail()

Controls

Registered with

Student
Name Father's Name Mother's Name Gardian's Name Address Ph no City Pin code Stream Roll no. * Set Stud_Details() SetCETMarks() *

Admitted In

Payment System JPG Engineering College


* 1 Student Details Admin Details Payment Details Stream Details validate login() generate admission list() SetStudPay_Details() Insert Pay_Details() ShowPay_Details() return confirmation() Generate Admit Card() Generate Student Details() Payment Given Date Of Next Payment Date Of Admission Due Payment

Maintains
1 GetPayMode() 1 Calculate Amount() View Projection()

Stream
Stream id Duration Fess Max_Intake Set Stream_ID() Set Max Intake() Set Duration() Set Total_fees() *

Enrolled

Has

Is A Type Of
*

Applicant
SetStudDetails()

DESIGN LEVEL CLASS DIAGRAM

32

You might also like