SlideShare a Scribd company logo
Vikas Manoria IT Specialist – IBM Academic Initiative [email_address] m Section - 7)  Packaging and  Deployment
Section 7 -  Packaging and Deployment (9%)   Create J2EE projects  Import and export J2EE modules  Create and locate resources in the appropriate location of the project hierarchy  Work with Web and Application Deployment Descriptor Editors
What is J2EE? Enterprise application development  Specification Platform for  developing, deploying and managing  n-tier ,web-enabled ,server centric and component based enterprise application
J2EE Architecture
J2EE Multi-tier Model
J2EE Perspective Project Explorer Code Editor Resource Views
Associating Projects with a Server There are several ways to associate a project with a server: From the project context pop-up menu, select  Run As > Run on server You will be able to choose a server in the dialog, and associate the project with that server From the server context pop-up menu in the Servers view, select  Add and Remove Projects… The server will be started in order to add or remove projects From the project context pop-up menu, select  Properties > Server From here, you can set the runtime target and the default server
J2EE Packaging The J2EE specification defines standard archive formats for all J2EE components EJB module Packaged in a Java archive (.jar) file Web module Packaged in a Web archive (.war) file Application client module Packaged in a Java archive (.jar) file Resource adapter module Packaged in a resource adapter archive (.rar) file Enterprise application Packaged in an enterprise archive (.ear) file
J2EE Packaging – Containment Hierarchy web resource JSP Servlet client1.jar web1.war res1.rar EJB client class native library adapter jar ejb1.jar app1.ear ejb-jar.xml application-client.xml web.xml web resource JSP Servlet ejb1.jar client1.jar web1.war res1.rar ra.xml EJB client class native library adapter jar application.xml
EJB Module An EJB module is contained in an EJB jar file Several beans may be packaged within a single EJB jar file The EJB JAR contains all the classes required for each EJB The enterprise bean class The enterprise bean home and component interfaces The primary key class if the bean is an entity bean The deployment descriptor (ejb-jar.xml) contains: EJB structural information Defining the class names, external dependencies, persistent fields and relationships (for CMP beans) Application assembly information describing how the EJBs fit into a wider application Security information and transaction attribute
Web Module Web modules (also known as Web applications) are contained in a Web archive (.WAR) file A WAR file will normally contain several Servlets, JavaServer Pages and other Web resources For example, a Web application may contain HTML files, graphics files, audio files and movies The deployment descriptor (web.xml) contains configuration information for resources contained in the war file For example, initialization parameters, session management configuration, Servlet declarations and mappings, filter definitions, welcome file list, and error pages Security information, tag libraries, and JNDI configuration may also be provided
Application Client Module Application clients are contained in jar file An application client JAR file contains all the classes required for the client to function The deployment descriptor (application-client.xml) contains configuration information for the client The enterprise beans and external resources referenced by the application client The mechanism for deployment and installation of the application client is not specified in the J2EE specification J2EE product providers may provide an application launcher that integrates with the application client machine’s native operating system
Resource Adapter Module Resource adapters are contained in a resource adapter archive (.RAR) file A resource adapter archive RAR file contains: Java code for the resource adapter Utility Java classes for the resource adapter Platform-dependent native libraries required by the resource adapter Help files and documentation The deployment descriptor (ra.xml) contains: General information on the adapter The class names of the connection factory and implementation class Transaction and security information
Enterprise Application Enterprise applications are contained in an enterprise archive (.ear) file An enterprise archive file contains one or more J2EE modules EJB jars, wars, application client jars and rars The enterprise application deployment descriptor (application.xml) contains: Details of all the modules packages in the ear file Definitions of security roles for the enterprise application
Relationship between Projects and J2EE Packages In J2EE V1.4 there are four application component types supported by the runtime environment: Application Clients Applets Web applications (servlets, JSPs, and HTML pages) EJBs J2EE components are packaged for deployment as modules: Application client module Web application module EJB module Resource adapter module Rational Application Developer projects map to J2EE packages
J2EE Packaging Structure Review Web DD EJB Module JAR file Web Module WAR file Client Module JAR file J2EE Application EAR file Installed RARs IBM Bind Schema Map Schema Attributes Table  Creation was.policy (Java2 Sec) IBM Bind/Ext HTML, GIFs, and so on Servlet JSP Application DD Client Classes EJBs IBM Bind/Ext IBM Bind/Ext EJB DD Client DD RA DD
Data Sources Defined in Enhanced EAR Application-related properties and data sources can be defined within an application to simplify application deployment Configuration files added to the J2EE EAR file as an IBM extension Properties are used when application is installed Data source is registered with the WebSphere V6.1 server when the application is started Configuration variables can be defined for substitution with server values when application is installed Enhanced EAR Properties J2EE Enterprise Application (EAR) Components Components Resources
Other Properties Defined in the Enhanced EAR 1 2 3 4 5 6 7
Exporting Web Applications A Web application can be exported in two ways using the context menu: As an EAR file As a WAR file
Sharing Projects between Workspaces Project Interchange  is an export feature that allows the export of entire projects. The project structure is maintained, including metadata files. Unlike exporting a WAR, where you may lose metadata. Unrelated projects can be  exported. You can then  easily import the projects into another workspace with a single action.
Publishing Applications  Application Developer supports: WebSphere test environment in the development environment Tomcat test environment in the development environment WebSphere local or remote server outside the development environment Tomcat local server outside the developer environment J2EE Web publishing server Static Web publishing server
Publishing Applications  The server tools provide several publishing methods that you can use when publishing projects and files. Server Status Server Name and Type
Checkpoint What are the four application component types supported by the runtime environment? What are the four modules used to package J2EE components? Name two components of the WAR file. You have a static Web project. Which archive can you use to export it: WAR or EAR? What is one of the most common uses of the enhanced EAR? What is the difference between exporting in .zip format and in project interchange format?
Checkpoint answers The four application component types supported by the runtime environment: Application Clients, Applets, Web applications (servlets, JSPs, HTML pages, and so on), and EJBs The four module types used to package J2EE components: Application client module, Web application module, EJB module, and Resource adapter module Servlets, JSPs, HTML pages, and Web Deployment Descriptor WAR Substitution variables, authentications, shared libraries, virtual hosts, class loader mode, WAR class loader policy, and start weight. The project interchange format preserves the metadata.
Checkpoint What is an EAR? What are the four types of modules contained in an EAR? What are the three types of archives contained in an EAR? Which archive type contains servlets and JSP pages?
Checkpoint solutions Enterprise Archive EARs can contain the following modules: EJB Web Resource Adapter Client Application The three types of archive files are: WAR (Web Archive) RAR (Resource Archive) JAR (Java Archive) WAR
Japanese Hebrew Thank You English Merci French Russian Danke German Grazie Italian Gracias Spanish Obrigado Portuguese Arabic Simplified Chinese Traditional Chinese Thai Korean
Ad

More Related Content

What's hot (20)

Android Widget
Android WidgetAndroid Widget
Android Widget
ELLURU Kalyan
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
saitej15
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
guest213e237
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android ppt
Taha Malampatti
 
Eclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATIONEclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATION
AYESHA JAVED
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
zeelpatel0504
 
Notification android
Notification androidNotification android
Notification android
ksheerod shri toshniwal
 
Android User Interface
Android User InterfaceAndroid User Interface
Android User Interface
Shakib Hasan Sumon
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
deepakshare
 
Supporting multiple screens on android
Supporting multiple screens on androidSupporting multiple screens on android
Supporting multiple screens on android
Li SUN
 
Android architecture
Android architectureAndroid architecture
Android architecture
Saurabh Kukreja
 
Android Components
Android ComponentsAndroid Components
Android Components
Aatul Palandurkar
 
Case Study - SUN NFS
Case Study - SUN NFSCase Study - SUN NFS
Case Study - SUN NFS
Ashish KC
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
Ajailal Parackal
 
Android SDK Tutorial | Edureka
Android SDK Tutorial | EdurekaAndroid SDK Tutorial | Edureka
Android SDK Tutorial | Edureka
Edureka!
 
Android - Graphics Animation in Android
Android - Graphics Animation in AndroidAndroid - Graphics Animation in Android
Android - Graphics Animation in Android
Vibrant Technologies & Computers
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
Prawesh Shrestha
 
Basic android-ppt
Basic android-pptBasic android-ppt
Basic android-ppt
Srijib Roy
 
Android application structure
Android application structureAndroid application structure
Android application structure
Alexey Ustenko
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
Rehna Renu
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
saitej15
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
guest213e237
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android ppt
Taha Malampatti
 
Eclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATIONEclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATION
AYESHA JAVED
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
zeelpatel0504
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
deepakshare
 
Supporting multiple screens on android
Supporting multiple screens on androidSupporting multiple screens on android
Supporting multiple screens on android
Li SUN
 
Case Study - SUN NFS
Case Study - SUN NFSCase Study - SUN NFS
Case Study - SUN NFS
Ashish KC
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
Ajailal Parackal
 
Android SDK Tutorial | Edureka
Android SDK Tutorial | EdurekaAndroid SDK Tutorial | Edureka
Android SDK Tutorial | Edureka
Edureka!
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
Prawesh Shrestha
 
Basic android-ppt
Basic android-pptBasic android-ppt
Basic android-ppt
Srijib Roy
 
Android application structure
Android application structureAndroid application structure
Android application structure
Alexey Ustenko
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
Rehna Renu
 

Viewers also liked (14)

3) web development
3) web development3) web development
3) web development
techbed
 
principle of oop’s in cpp
principle of oop’s in cppprinciple of oop’s in cpp
principle of oop’s in cpp
gourav kottawar
 
Lecture 11 bitwise_operator
Lecture 11 bitwise_operatorLecture 11 bitwise_operator
Lecture 11 bitwise_operator
eShikshak
 
Inheritance C#
Inheritance C#Inheritance C#
Inheritance C#
Raghuveer Guthikonda
 
Web Applications and Deployment
Web Applications and DeploymentWeb Applications and Deployment
Web Applications and Deployment
BG Java EE Course
 
ADO CONTROLS - Database usage
ADO CONTROLS - Database usageADO CONTROLS - Database usage
ADO CONTROLS - Database usage
Muralidharan Radhakrishnan
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Muralidharan Radhakrishnan
 
WebLogic Deployment Plan Example
WebLogic Deployment Plan ExampleWebLogic Deployment Plan Example
WebLogic Deployment Plan Example
James Bayer
 
Social networking api for Android Developers
Social networking api for Android DevelopersSocial networking api for Android Developers
Social networking api for Android Developers
Satyam Twanabasu
 
System testing
System testingSystem testing
System testing
Slideshare
 
System testing ppt
System testing pptSystem testing ppt
System testing ppt
L ESHWAR
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
Kumar Gaurav
 
What is tackled in the Java EE Security API (Java EE 8)
What is tackled in the Java EE Security API (Java EE 8)What is tackled in the Java EE Security API (Java EE 8)
What is tackled in the Java EE Security API (Java EE 8)
Rudy De Busscher
 
7 inheritance and polymorphism
7   inheritance and polymorphism7   inheritance and polymorphism
7 inheritance and polymorphism
Tuan Ngo
 
3) web development
3) web development3) web development
3) web development
techbed
 
principle of oop’s in cpp
principle of oop’s in cppprinciple of oop’s in cpp
principle of oop’s in cpp
gourav kottawar
 
Lecture 11 bitwise_operator
Lecture 11 bitwise_operatorLecture 11 bitwise_operator
Lecture 11 bitwise_operator
eShikshak
 
Web Applications and Deployment
Web Applications and DeploymentWeb Applications and Deployment
Web Applications and Deployment
BG Java EE Course
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
Muralidharan Radhakrishnan
 
WebLogic Deployment Plan Example
WebLogic Deployment Plan ExampleWebLogic Deployment Plan Example
WebLogic Deployment Plan Example
James Bayer
 
Social networking api for Android Developers
Social networking api for Android DevelopersSocial networking api for Android Developers
Social networking api for Android Developers
Satyam Twanabasu
 
System testing
System testingSystem testing
System testing
Slideshare
 
System testing ppt
System testing pptSystem testing ppt
System testing ppt
L ESHWAR
 
What is tackled in the Java EE Security API (Java EE 8)
What is tackled in the Java EE Security API (Java EE 8)What is tackled in the Java EE Security API (Java EE 8)
What is tackled in the Java EE Security API (Java EE 8)
Rudy De Busscher
 
7 inheritance and polymorphism
7   inheritance and polymorphism7   inheritance and polymorphism
7 inheritance and polymorphism
Tuan Ngo
 
Ad

Similar to 7) packaging and deployment (20)

Java J2EE
Java J2EEJava J2EE
Java J2EE
Sandeep Rawat
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
anil_kumar132001
 
Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.
suranisaunak
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java ee
Ranjan Kumar
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
Joel Briza
 
B Shilpa
B ShilpaB Shilpa
B Shilpa
st anns PG College,Mallapur,Hyderabad, India
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal
 
Overview of JEE Technology
Overview of JEE TechnologyOverview of JEE Technology
Overview of JEE Technology
People Strategists
 
Ecom lec3 16_ej_bs
Ecom lec3 16_ej_bsEcom lec3 16_ej_bs
Ecom lec3 16_ej_bs
Zainab Khallouf
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
Middleware Training
 
Jboss
JbossJboss
Jboss
Sridhar Rapala
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
s4al_com
 
J2ee seminar
J2ee seminarJ2ee seminar
J2ee seminar
Sahil Kukreja
 
Web Sphere Application Server Features
Web Sphere Application Server FeaturesWeb Sphere Application Server Features
Web Sphere Application Server Features
Symbyo Technologies
 
Introduction to j2 ee frameworks
Introduction to j2 ee frameworksIntroduction to j2 ee frameworks
Introduction to j2 ee frameworks
Mukesh Kumar
 
J2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for womenJ2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for women
lissa cidhi
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
Д. Ганаа
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir2
 
Was 5.1 To 6.1
Was 5.1 To 6.1Was 5.1 To 6.1
Was 5.1 To 6.1
tsmanyam
 
Greate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADFGreate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADF
Mohamed Shahpoup
 
Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.
suranisaunak
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java ee
Ranjan Kumar
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
Joel Briza
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
s4al_com
 
Web Sphere Application Server Features
Web Sphere Application Server FeaturesWeb Sphere Application Server Features
Web Sphere Application Server Features
Symbyo Technologies
 
Introduction to j2 ee frameworks
Introduction to j2 ee frameworksIntroduction to j2 ee frameworks
Introduction to j2 ee frameworks
Mukesh Kumar
 
J2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for womenJ2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for women
lissa cidhi
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
Д. Ганаа
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir2
 
Was 5.1 To 6.1
Was 5.1 To 6.1Was 5.1 To 6.1
Was 5.1 To 6.1
tsmanyam
 
Greate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADFGreate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADF
Mohamed Shahpoup
 
Ad

More from techbed (20)

1456.base boot
1456.base boot1456.base boot
1456.base boot
techbed
 
1455.ata atapi standards - 1-7
1455.ata atapi standards - 1-71455.ata atapi standards - 1-7
1455.ata atapi standards - 1-7
techbed
 
1454.ata features
1454.ata features1454.ata features
1454.ata features
techbed
 
1432.encoding concepts
1432.encoding concepts1432.encoding concepts
1432.encoding concepts
techbed
 
Flash cs4 tutorials_2009
Flash cs4 tutorials_2009Flash cs4 tutorials_2009
Flash cs4 tutorials_2009
techbed
 
Photoshop tut
Photoshop tutPhotoshop tut
Photoshop tut
techbed
 
Part 6 debugging and testing java applications
Part 6 debugging and testing java applicationsPart 6 debugging and testing java applications
Part 6 debugging and testing java applications
techbed
 
Lab 7b) test a web application
Lab 7b) test a web applicationLab 7b) test a web application
Lab 7b) test a web application
techbed
 
Lab 7a) debug a web application
Lab 7a) debug a web applicationLab 7a) debug a web application
Lab 7a) debug a web application
techbed
 
What is struts_en
What is struts_enWhat is struts_en
What is struts_en
techbed
 
Part 7 packaging and deployment
Part 7 packaging and deploymentPart 7 packaging and deployment
Part 7 packaging and deployment
techbed
 
Lab 6) package and deploy a j2 ee application
Lab 6) package and deploy a j2 ee applicationLab 6) package and deploy a j2 ee application
Lab 6) package and deploy a j2 ee application
techbed
 
Lab 5b) create a java server faces application
Lab 5b) create a java server faces applicationLab 5b) create a java server faces application
Lab 5b) create a java server faces application
techbed
 
Lab 5a) create a struts application
Lab 5a) create a struts applicationLab 5a) create a struts application
Lab 5a) create a struts application
techbed
 
First java-server-faces-tutorial-en
First java-server-faces-tutorial-enFirst java-server-faces-tutorial-en
First java-server-faces-tutorial-en
techbed
 
Part 5 running java applications
Part 5 running java applicationsPart 5 running java applications
Part 5 running java applications
techbed
 
Part 4 working with databases
Part 4 working with databasesPart 4 working with databases
Part 4 working with databases
techbed
 
Part 3 web development
Part 3 web developmentPart 3 web development
Part 3 web development
techbed
 
Lab 4) working with databases
Lab 4) working with databasesLab 4) working with databases
Lab 4) working with databases
techbed
 
Lab 3) create a web application
Lab 3) create a web applicationLab 3) create a web application
Lab 3) create a web application
techbed
 
1456.base boot
1456.base boot1456.base boot
1456.base boot
techbed
 
1455.ata atapi standards - 1-7
1455.ata atapi standards - 1-71455.ata atapi standards - 1-7
1455.ata atapi standards - 1-7
techbed
 
1454.ata features
1454.ata features1454.ata features
1454.ata features
techbed
 
1432.encoding concepts
1432.encoding concepts1432.encoding concepts
1432.encoding concepts
techbed
 
Flash cs4 tutorials_2009
Flash cs4 tutorials_2009Flash cs4 tutorials_2009
Flash cs4 tutorials_2009
techbed
 
Photoshop tut
Photoshop tutPhotoshop tut
Photoshop tut
techbed
 
Part 6 debugging and testing java applications
Part 6 debugging and testing java applicationsPart 6 debugging and testing java applications
Part 6 debugging and testing java applications
techbed
 
Lab 7b) test a web application
Lab 7b) test a web applicationLab 7b) test a web application
Lab 7b) test a web application
techbed
 
Lab 7a) debug a web application
Lab 7a) debug a web applicationLab 7a) debug a web application
Lab 7a) debug a web application
techbed
 
What is struts_en
What is struts_enWhat is struts_en
What is struts_en
techbed
 
Part 7 packaging and deployment
Part 7 packaging and deploymentPart 7 packaging and deployment
Part 7 packaging and deployment
techbed
 
Lab 6) package and deploy a j2 ee application
Lab 6) package and deploy a j2 ee applicationLab 6) package and deploy a j2 ee application
Lab 6) package and deploy a j2 ee application
techbed
 
Lab 5b) create a java server faces application
Lab 5b) create a java server faces applicationLab 5b) create a java server faces application
Lab 5b) create a java server faces application
techbed
 
Lab 5a) create a struts application
Lab 5a) create a struts applicationLab 5a) create a struts application
Lab 5a) create a struts application
techbed
 
First java-server-faces-tutorial-en
First java-server-faces-tutorial-enFirst java-server-faces-tutorial-en
First java-server-faces-tutorial-en
techbed
 
Part 5 running java applications
Part 5 running java applicationsPart 5 running java applications
Part 5 running java applications
techbed
 
Part 4 working with databases
Part 4 working with databasesPart 4 working with databases
Part 4 working with databases
techbed
 
Part 3 web development
Part 3 web developmentPart 3 web development
Part 3 web development
techbed
 
Lab 4) working with databases
Lab 4) working with databasesLab 4) working with databases
Lab 4) working with databases
techbed
 
Lab 3) create a web application
Lab 3) create a web applicationLab 3) create a web application
Lab 3) create a web application
techbed
 

Recently uploaded (20)

How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 

7) packaging and deployment

  • 1. Vikas Manoria IT Specialist – IBM Academic Initiative [email_address] m Section - 7) Packaging and Deployment
  • 2. Section 7 - Packaging and Deployment (9%) Create J2EE projects Import and export J2EE modules Create and locate resources in the appropriate location of the project hierarchy Work with Web and Application Deployment Descriptor Editors
  • 3. What is J2EE? Enterprise application development Specification Platform for developing, deploying and managing n-tier ,web-enabled ,server centric and component based enterprise application
  • 6. J2EE Perspective Project Explorer Code Editor Resource Views
  • 7. Associating Projects with a Server There are several ways to associate a project with a server: From the project context pop-up menu, select Run As > Run on server You will be able to choose a server in the dialog, and associate the project with that server From the server context pop-up menu in the Servers view, select Add and Remove Projects… The server will be started in order to add or remove projects From the project context pop-up menu, select Properties > Server From here, you can set the runtime target and the default server
  • 8. J2EE Packaging The J2EE specification defines standard archive formats for all J2EE components EJB module Packaged in a Java archive (.jar) file Web module Packaged in a Web archive (.war) file Application client module Packaged in a Java archive (.jar) file Resource adapter module Packaged in a resource adapter archive (.rar) file Enterprise application Packaged in an enterprise archive (.ear) file
  • 9. J2EE Packaging – Containment Hierarchy web resource JSP Servlet client1.jar web1.war res1.rar EJB client class native library adapter jar ejb1.jar app1.ear ejb-jar.xml application-client.xml web.xml web resource JSP Servlet ejb1.jar client1.jar web1.war res1.rar ra.xml EJB client class native library adapter jar application.xml
  • 10. EJB Module An EJB module is contained in an EJB jar file Several beans may be packaged within a single EJB jar file The EJB JAR contains all the classes required for each EJB The enterprise bean class The enterprise bean home and component interfaces The primary key class if the bean is an entity bean The deployment descriptor (ejb-jar.xml) contains: EJB structural information Defining the class names, external dependencies, persistent fields and relationships (for CMP beans) Application assembly information describing how the EJBs fit into a wider application Security information and transaction attribute
  • 11. Web Module Web modules (also known as Web applications) are contained in a Web archive (.WAR) file A WAR file will normally contain several Servlets, JavaServer Pages and other Web resources For example, a Web application may contain HTML files, graphics files, audio files and movies The deployment descriptor (web.xml) contains configuration information for resources contained in the war file For example, initialization parameters, session management configuration, Servlet declarations and mappings, filter definitions, welcome file list, and error pages Security information, tag libraries, and JNDI configuration may also be provided
  • 12. Application Client Module Application clients are contained in jar file An application client JAR file contains all the classes required for the client to function The deployment descriptor (application-client.xml) contains configuration information for the client The enterprise beans and external resources referenced by the application client The mechanism for deployment and installation of the application client is not specified in the J2EE specification J2EE product providers may provide an application launcher that integrates with the application client machine’s native operating system
  • 13. Resource Adapter Module Resource adapters are contained in a resource adapter archive (.RAR) file A resource adapter archive RAR file contains: Java code for the resource adapter Utility Java classes for the resource adapter Platform-dependent native libraries required by the resource adapter Help files and documentation The deployment descriptor (ra.xml) contains: General information on the adapter The class names of the connection factory and implementation class Transaction and security information
  • 14. Enterprise Application Enterprise applications are contained in an enterprise archive (.ear) file An enterprise archive file contains one or more J2EE modules EJB jars, wars, application client jars and rars The enterprise application deployment descriptor (application.xml) contains: Details of all the modules packages in the ear file Definitions of security roles for the enterprise application
  • 15. Relationship between Projects and J2EE Packages In J2EE V1.4 there are four application component types supported by the runtime environment: Application Clients Applets Web applications (servlets, JSPs, and HTML pages) EJBs J2EE components are packaged for deployment as modules: Application client module Web application module EJB module Resource adapter module Rational Application Developer projects map to J2EE packages
  • 16. J2EE Packaging Structure Review Web DD EJB Module JAR file Web Module WAR file Client Module JAR file J2EE Application EAR file Installed RARs IBM Bind Schema Map Schema Attributes Table Creation was.policy (Java2 Sec) IBM Bind/Ext HTML, GIFs, and so on Servlet JSP Application DD Client Classes EJBs IBM Bind/Ext IBM Bind/Ext EJB DD Client DD RA DD
  • 17. Data Sources Defined in Enhanced EAR Application-related properties and data sources can be defined within an application to simplify application deployment Configuration files added to the J2EE EAR file as an IBM extension Properties are used when application is installed Data source is registered with the WebSphere V6.1 server when the application is started Configuration variables can be defined for substitution with server values when application is installed Enhanced EAR Properties J2EE Enterprise Application (EAR) Components Components Resources
  • 18. Other Properties Defined in the Enhanced EAR 1 2 3 4 5 6 7
  • 19. Exporting Web Applications A Web application can be exported in two ways using the context menu: As an EAR file As a WAR file
  • 20. Sharing Projects between Workspaces Project Interchange is an export feature that allows the export of entire projects. The project structure is maintained, including metadata files. Unlike exporting a WAR, where you may lose metadata. Unrelated projects can be exported. You can then easily import the projects into another workspace with a single action.
  • 21. Publishing Applications Application Developer supports: WebSphere test environment in the development environment Tomcat test environment in the development environment WebSphere local or remote server outside the development environment Tomcat local server outside the developer environment J2EE Web publishing server Static Web publishing server
  • 22. Publishing Applications The server tools provide several publishing methods that you can use when publishing projects and files. Server Status Server Name and Type
  • 23. Checkpoint What are the four application component types supported by the runtime environment? What are the four modules used to package J2EE components? Name two components of the WAR file. You have a static Web project. Which archive can you use to export it: WAR or EAR? What is one of the most common uses of the enhanced EAR? What is the difference between exporting in .zip format and in project interchange format?
  • 24. Checkpoint answers The four application component types supported by the runtime environment: Application Clients, Applets, Web applications (servlets, JSPs, HTML pages, and so on), and EJBs The four module types used to package J2EE components: Application client module, Web application module, EJB module, and Resource adapter module Servlets, JSPs, HTML pages, and Web Deployment Descriptor WAR Substitution variables, authentications, shared libraries, virtual hosts, class loader mode, WAR class loader policy, and start weight. The project interchange format preserves the metadata.
  • 25. Checkpoint What is an EAR? What are the four types of modules contained in an EAR? What are the three types of archives contained in an EAR? Which archive type contains servlets and JSP pages?
  • 26. Checkpoint solutions Enterprise Archive EARs can contain the following modules: EJB Web Resource Adapter Client Application The three types of archive files are: WAR (Web Archive) RAR (Resource Archive) JAR (Java Archive) WAR
  • 27. Japanese Hebrew Thank You English Merci French Russian Danke German Grazie Italian Gracias Spanish Obrigado Portuguese Arabic Simplified Chinese Traditional Chinese Thai Korean