Call for New Batch / Any Query / Demo Classes : ☎ 08871209400 , 7987028543 , Zone-2,M.P.Nagar,Bhopal

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…

Global Tech NewsTop Programing Index January 2018January Headline Programming Language C awarded Language of the Year 2017,language C appears to be the fastest grower of 2017 in the TIOBE index and thus is declared programming language of the yearProgramming languages used in most popular websitesThe most popular websites have in common that they are dynamic websites. Their development typically involves server side coding client side coding and database technologyTop 10 Computer Science Skills That Could Sharpen Non-Computer Science CareersWhat do design marketing, engineering and data analysis have in common Theyre all careers where employers increasingly demand computer science skills.Oracle Buys AconexCreates the Worlds Most Comprehensive Cloud Offering for Managing All Aspects of Construction ProjectsOracle Unveils Worlds First Autonomous Database CloudAlso Introduces Oracle Autonomous Data Warehouse Cloud that has Demonstrated Performance of 10x Faster at Half the Cost of AmazonRecent List and Rankings Of Top Programming LanguagesThe programming languages Kotlin and C seem to be the only candidates to become programming language of the year 2017. TIOBE will announce the winner of this award next monthProgramming Index for November 2017This index ranks programming languages on the basis of their popularity.October Rankings Of Top Programming LanguagesIn the Beginning of this year the Programming Language Swift Peaked at a Rating of 2.3% in the TIOBE index and Even Reached a top 10 position. But now it is back at Position 16 and Constantly Declining Month after Month. Until recently it was quite Common to Program Android apps in Java and iOS apps in Swift/Objective-CAutosizing TextViewsAndroid 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 TextUsing Fonts in AndroidIntroduce 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 TypefaceSpace 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 interviews Sept. 20 with KSTP-TV, Minneapolis and the Associated Press

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 +LinkedInTwitterYouTube

MyJava - java Training Institute