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();
							}

						}									
								
    
Explore Technology
Android Oreo
Android Oreo More Powerful Than Ever
Protecting 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
Space Crew Members Discuss Life in Space
Space Station Crew Members Discuss Life in Space with the Media
Aboard 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 interviews Sept. 20 with KSTP-TV, Minneapolis and the Associated Press
Space Station Crew Member Discusses His First Days in Space
Space Station Crew Member Discusses His First Days in Space with Minnesota Students
Aboard 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, Minnesota
An introduction to YouTube
An introduction to YouTube's new design
The 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 Uses
Android Fonts
Using Fonts in Android
Introduce to Android O and Support Library 26 new ways of working with Fonts. now You can Bundle Fonts as Resources by Adding the Font File in the Res/Font Folder and use it like any Other Asset in XML Layouts, Styles or Programmatically via the Typeface
Autosizing TextViews
Autosizing TextViews
Android O and Support Lib 26 allow to the text size expand,for Best user Experience with Text, Material Design Recommends Using a Dynamic Type Instead of smaller type Sizes or Truncating Larger-Size Text


Explore Java
Ubiquitous Computing at Google
What’s New in Google’s IoT Platform?
Google has a wide range of platforms and support the tools Internet of Things and to bring about the vision of ubiquitous computing so users can interact with services wherever and whenever it makes sense for them.
IO 17 machine learning
Machine Learning
Learning About Tensor Flow And The TPU chip In This Segment, He Explores The Machine Learning Sandbox,
reset android phone
Reset Your Android Phone
Resetting This way is also called "formatting," or a "hard reset". we Learn the best way to reset your Android phone, when necessary
reset android phone
Reset Your Android Phone
Resetting This way is also called "formatting," or a "hard reset". we Learn the best way to reset your Android phone, when necessary
Android
Android
Android (operating system)
Cloud Computing
Cloud Computing
Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction.
MyJava - java Training Institute