JEE

Formerly known as Java 2 Platform Enterprise Edition (J2EE),Java Platform Enterprise Edition (Java EE), is a computing platform for development and deployment of enterprise software (network and web services)

The platform uses the object-oriented Java programming language. It is part of the Java software platform family. Java EE extends the Java Platform, Standard Edition (Java SE), providing an API for object-relational mapping, distributed and multitier architectures, and web services. The platform incorporates a design based largely on modular components running on an application server. The platform emphasizes convention over configuration and annotations for configuration. Optionally XML can be used to override annotations or to deviate from the platform defaults

Java EE is developed using the Java Community Process, with contributions from industry experts, commercial and open source organizations, Java User Groups, and countless individuals

 

JEE Version History :

The platform was known as Java 2 Platform, Enterprise Edition or J2EE from version 1.2, until the name was changed to Java Platform, Enterprise Edition or Java EE in version 1.5. The current version is called Java EE 8

➯ J2EE 1.2 (December 12, 1999)
➯ J2EE 1.3 (September 24, 2001)
➯ J2EE 1.4 (November 11, 2003)
➯ Java EE 5 (May 11, 2006)
➯ Java EE 6 (December 10, 2009)
➯ Java EE 7 (May 28, 2013,( April 5, 2013 according to spec document)
➯ Java EE 8 (Expected by the end of 2017)
.
JEE General APIs :

Java EE is defined by its specification. As with other Java Community Process specifications, providers must meet certain conformance requirements in order to declare their products as Java EE compliant.
The Java EE APIs includes several technologies that extend the functionality of the base Java SE APIs.

➯ javax/servlet
➯ javax/faces
➯ javax/faces/component
➯ javax/el
➯ javax/enterprise/inject
➯ javax/enterprise/context
➯ javax/ejb
➯ javax/validation
➯ javax/persistence
➯ javax/transaction
➯ javax/security/auth/message
➯ javax/enterprise/concurrent
➯ javax/jms
➯ javax/batch/api
➯ javax/resource
.

JEE Code sample :

The code sample shown below demonstrates how various technologies in Java EE 7 are used together to build a web form for editing a user.

In Java EE a (web) UI can be built using Servlet, JavaServer Pages (JSP), or JavaServer Faces (JSF) with Facelets. The example below uses JSF and Facelets. Not explicitly shown is that the input components use the Java EE Bean Validation API under the covers to validate constraints.

HTML File

In Java EE a (web) UI can be built using Servlet, JavaServer Pages (JSP), or JavaServer Faces (JSF) with Facelets. The example below uses JSF and Facelets.


 
									

								
									
								
									
								
											
									
											
									        
										                                  
											
											
															
											
											
													   
											
										
									
									
								
							

    

Example Bean class :

The example below uses Contexts and Dependency Injection (CDI) and Enterprise JavaBean (EJB).


                @Named
									@ViewScoped
									public class UserEdit {
											
										private User user;

										@Inject
										private UserDAO userDAO;
									  
										public String saveUser() {
											userDAO.save(this.user);        
											addFlashMessage("User " + this.user.getId() + " saved");
													
											return "users.xhtml?faces-redirect=true";
										}

										public void setUser(User user) {
											this.user = user;
										}

										public User getUser() {
											return user;
										}
									}



    
 
 

Example DAO class:

To implement business logic, Enterprise JavaBean (EJB) is the dedicated technology in Java EE.

    
						@Stateless
						public class UserDAO {
								
							@PersistenceContext
							private EntityManager entityManager;
								
							public void save(User user) {
								entityManager.persist(user);
							}
								
							public void update(User user) {
								entityManager.merge(user);
							}

							public List getAll() {
								return entityManager.createNamedQuery("User.getAll", User.class)
													.getResultList();
							}

						}									
								
    
share on : :

Love to hear your Views / Guidance / Recommendations on this Post…

More Programming Topics

Key Features of the Java LanguageJava is simpler than most other languages that are used to create server applications because of its consistent enforcement of the object model.Introduction To JavaThe following sections explain how Java technology is both a programming language and a platform and provide an overview of what this technology can do for youChaining Constructor using SuperIf a subclass constructor invokes a constructor of its superclass either explicitly or implicitly there will be a whole chain of constructors called all the way back to the constructor of Object.Multilevel Inheritance in JavaMultilevel Inheritance is said to have taken place when a child class inherits from a parent class and then child class becomes the parent class for another class.Interface Inheritance JavaAn Interface declaration consists of modifiers the keyword interface the interface name a comma separated list of parent interfaces and the interface body.Inheritance in JavaA class that is derived from another class is called a subclass. The class from which the subclass is derived is called a superclass. This process of inheriting properties from another class is called Inheritance.White Spaces in JavaWhite Space is a character in Java. A character satisfies to be a White Space if and only if it is a Unicode space character.Serialization and Deserialization JavaTo serialize an object means to convert its state to a byte stream so that the byte stream can be reverted back into a copy of the object.Implementations in Collection FrameworkImplementations are the data objects used to store collections, which implement the interfaces described in the Interfaces section.

Explore the Technology World

An introduction to YouTube's new designThe Challenge Facing YouTube’s Design and Interaction Team When They Launched the Redesign Two Years Ago Was How to Tie Together a Host of Products with Very Different Audiences and UsesSpace Station Crew Member Discusses His First Days in Space with Minnesota StudentsAboard the International Space Station, Expedition 53 Flight Engineer Mark Vande Hei of NASA fielded questions about life and work on the orbital outpost during an in-flight educational event Sept. 18 with students from the Pine River-Backus schools in Pine River, MinnesotaSpace Station Crew Members Discuss Life in Space with the MediaAboard the International Space Station, Expedition 53 Flight Engineers Mark Vande Hei and Joe Acaba of NASA and Paolo Nespoli of the European Space Agency discussed life and work aboard the orbital complex in a pair of in-flight interviewsBeyond Mobile Server Games with Visual Studio for MacYou know that Visual Studio for Mac does Xamarin, but do You know what Else? We'll take a look at using Visual Studio for Mac for Mobile, Web, Game, Server less and IoT Development, and Connecting them with .NET Standard 2.0An introduction to YouTube's new designhe Challenge Facing YouTube’s Design and Interaction Team When They Launched the Redesign Two Years Ago Was How to Tie Together a Host of Products with Very Different Audiences and UsesAndroid Oreo Safer Than EverProtecting you from harm’s way. Android Oreo is more Secure than Ever.With Google Play Protect Built in, You’ll have Peace of Mind in the Palm of Your Hands

Call / Visit for New Batch

Services

Why Join Us

  • ➯ Free Demo Classes
  • ➯ No Registration Fee
  • ➯ Interview Questions
  • ➯ Study Materials
  • ➯ Softwares
  • ➯ Aptitude & Reasoning
  • ➯ Placement Assitance

Address

  • MyJava Training Institute ,
  • Plot No.243 , shop No 14 ,
  • Secnd Floor , Zone-II ,
  • M.P.Nagar , Bhopal,
  • Madhya Pradesh ( 462011 )
  • ☎  08871209400 , 7987028543
  • 🌐 www.myjava.in
FacebookGoogle +TwitterYouTube

MyJava - java Training Institute