SlideShare a Scribd company logo
Java EE 7 – New
Features?
Presenter: Shahzad Badar
Agenda
 Who am I?
 Java EE 7 – New Features?
Pakistan Java User Group
Who am I?
A programmer working on java since
2002
Spent most of the time in Islamabad
Leading Pakistan Java User Group
Working in Royal Cyber
Pakistan Java User Group
Catch me
@shahzadbadar
shahzadbadar@gmail.com
http://www.implementsjava.com
Pakistan Java User Group
Pakistan Java User Group
Pakistan Java User Group
Java EE 6 - Achievements
 50,000,000 + downloads
 #1 choice for enterprise developers
 #1 application development platform
 Fastest adoptions of any Java EE release – 18 complaint
servers
Pakistan Java User Group
Java EE 6 – Main Features
 Web Profile
 EJB packaged in war
 Optional web.xml
 Type-safe dependency injection
 CDI Events
 JSF standardizing on facelets
 @Schedule
Pakistan Java User Group
JEE 7 Theme
Pakistan Java User Group
Pakistan Java User Group
Active JSRs
 JSR 342: Java EE 7 Platform
 JSR 338: Java API for RESTful Web Services 2.0
 JSR 339: Java Persistence API 2.1
 JSR 340: Servlet 3.1
 JSR 341: Expression Language 3.0
 JSR 343: Java Message Service 2.0
 JSR 344: JavaServer Faces 2.2
 JSR 345: Enteprise JavaBeans 3.2
 JSR 346: Contexts and Dependency Injection 1.1
 JSR 349: Bean Validation 1.1
 JSR 236: Concurrency Utilities for Java EE 1.0
 JSR 352: Batch Applications for the Java Platform 1.0
 JSR 353: Java API for JSON Processing 1.0
 JSR 356: Java API for WebSocket 1.0
Pakistan Java User Group
Concurrency and Java EE
 Managing your own threads within a Java EE container is
not recommended
 Using java.util.concurrent API in a Java EE application
component such as EJB or Servlet are problematic since the
container and server have no knowledge of these resource
 Provides simple, safe API for concurrency in Java EE
 Builds on Java SE concurrency
java.util.concurrent.ExecutorService
Pakistan Java User Group
Pakistan Java User Group
Batch Applications for the Java
Platform
 Batch processing is execution of series of "jobs"
that is suitable for non-interactive, bulk-oriented
and long-running tasks.
 no standard Java programming model existed for
batch applications.
Pakistan Java User Group
Pakistan Java User Group
Java EE Web Profile Enhancements
 The Java Enterprise Edition Web Profile was introduced
in Java EE 6
 Most Web applications have significant requirements
in the areas of transaction management, security, and
persistence.
 but are not supported by standalone servlet containers
 Web Profile is provided with pre-installed, pre-
integrated, fully tested Web infrastructure features.
 The Java EE 7 Web Profile adds support for HTML5
with WebSockets, JSON, JAX-RS 2.0, and more.
Pakistan Java User Group
Bean Validation 1.1
 Method constraints
 Bean Validation artifacts injectable
 Fixes, clarifications and enhancements
Pakistan Java User Group
Bean Validation 1.1
Method Level Constraints
Pakistan Java User Group
public void placeOrder( @NotNull String productName,
@NotNull @Max(“10”) Integer quantity,
@Customer String customer) {
. . .
}
@Future
public Date getAppointment() {
. . .
}
JSF 2.2
 HTML5 Support
 @FlowScoped
 @ViewScoped for CDI
 Managed beans deprecated/CDI alignment
 File upload component
 View actions
 Multi-templating
 Security
 Fixes and enhancements
Pakistan Java User Group
JSON Processing Support
 JSON (JavaScript Object Notation) is a lightweight data-interchange
format. It is easy for humans to read and write.
 It is easy for machines to parse and generate.
 It is based on a subset of the JavaScript Programming
Language, Standard ECMA-262 3rd Edition - December 1999.
 JSON is a text format that is completely language independent but uses
conventions that are familiar to programmers
Pakistan Java User Group
{
“employee": [
{ "firstName":"John" , "lastName":"Doe" },
{ "firstName":"Anna" , "lastName":"Smith" },
{ "firstName":"Peter" , "lastName":"Jones" }
]
}
JSON Example
JSON Implementations for Java
 org.json.
 org.json.me.
 Jackson JSON Processor.
 Json-lib.
 JSON Tools.
 Stringtree.
 SOJO.
 Jettison.
 json-taglib.
 XStream.
 Flexjson.
 JON tools.
 Argo.
 jsonij.
 fastjson.
 mjson.
 jjson.
 json-simple.
 json-io.
 JsonMarshaller.
 google-gson.
 Json-smart.
 FOSS Nova JSON.
 Corn CONVERTER.
Pakistan Java User Group
a lot of implementations for other languages
Why we need another API?
Pakistan Java User Group
• JSON has become a defacto data transfer standard specially for
RESTful Web Services.
• Java applications use different implementations to consume and
process JSON data
• There should be standardized Java API for JSON so that
applications do not need to bundle the implementation libraries
JSON Processing Support
 API to parse and generate JSON
 Streaming API
 Low level efficient way to parse/generate JSON
 Provide pluggability for parser/generator
 Object Model
 Simple, Easy-to-use high-level API
 Implemented on top of Streaming API
Pakistan Java User Group
Java API for JSON Processing
Writing JSON (Object Model API)
Pakistan Java User Group
“employees": [
{ “firstName": “Asif", “lastName": ”Naveed” },
{ “firstName": “Khalid", “lastName": ”Ali” }
]
JsonObject jsonObject =
new JsonBuilder() .beginArray(“employees")
.beginObject() .add(“firstName", “Asif")
.add(“lastName", “Naveed") .endObject()
.beginObject () .add(“firstName", “Khalid")
.add(“lastName", “Ali").endObject()
.endArray() .build();
Java API for JSON Processing
Pakistan Java User Group
{
"firstName": "Javaid", "lastName": “Shah", "age": 19,
"phoneNumber": [
{ "type": “cell", "number": “03218983449" },
{ "type": "fax", "number": “02142423212" }
]
}
Iterator<Event> it = parser.iterator();
Event event = it.next(); // START_OBJECT
event = it.next(); // KEY_NAME
event = it.next(); // VALUE_STRING
String name = parser.getString(); // "Javaid”
Reading JSON (Streaming API)
Web Socket Support
In age of Web 2.0 / 3.0 , We need interactive websites
Pakistan Java User Group
but
In the standard HTTP model, a server cannot initiate a connection
with a client nor send an unrequested HTTP response to a client;
thus, the server cannot push asynchronous events to clients.
Why WebSocket?
 HTTP is half duplex
 HTTP is verbose
 Hacks for Server Push
 Polling
 Long Polling
 Comet/Ajax
 Complex, Wasteful, Inefficient
Pakistan Java User Group
HTTP Communication
Pakistan Java User Group
Polling
Pakistan Java User Group
Long Polling
Pakistan Java User Group
HTTP Streaming (Comet)
Pakistan Java User Group
WebSocket to rescue
 TCP based, bi-directional, full-duplex messaging
 Capable of sending both UTF-8 string and binary
frames in any direction at the same time
 Operating from a single socket across the web
 As part of HTML5, the application of the client
interface will become native to all modern browsers
 To establish a Web Socket connection, the browser or
client simply makes a request to the server for an
upgrade from HTTP to a Web Socket
Pakistan Java User Group
WebSocket to rescue
Pakistan Java User Group
Pakistan Java User Group
“Reducing kilobytes of data to 2
bytes…and reducing latency from
150ms to 50ms is far more than
marginal. In fact, these two factors
alone are enough to make Web Sockets
seriously interesting to Google.”
Java WebSocket Implementations
Pakistan Java User Group
WebSocket API
Connection Life Cycle
@Singleton
@WebSocketEndpoint(path=”/chat”)
public class ChatServer {
Set<Session> peers = ...
@WebSocketOpen
public void onOpen(Session peer) { peers.add(session);
}
@WebSocketClose
public void onClose(Session session) {
peers.remove(session);
}
...
Pakistan Java User Group
WebSocket API
WebSocket Communication
. . .
@WebSocketMessage
public void message(String message, Session client)
throws IOException {
for (Session session : peers) {
if (!session.equals(client)) {
session.getRemote().sendObject(message);
}
}
}
}
Pakistan Java User Group
JPA 2.1 – New Features
The first spec to include new features is the JPA 2.1. The new
features can be described with the following short list:
 Multi-Tenancy (Table discriminator)
 Stored Procedures
 Custom types and transformation methods - Query
by Example
 Dynamic PU Definition
 Schema Generation (Additional mapping metadata
to provide better standardization)
Pakistan Java User Group
Servlet 3.1 – New Features
NIO.2 async I/O
Leverage Java EE concurrency
Security improvements
Web Sockets support
Ease-of-Development
Pakistan Java User Group
Enteprise JavaBeans 3.2 – New
Features
The scope of EJB 3.2 is intended to be relatively
constrained in focusing on these goals.
 Incremental factorization (Interceptors)
 Further use of annotations to simplify the EJB
programming model
 Proposed Optional: BMP/CMP
 Proposed Optional: Web Services invocation using
RPC
Pakistan Java User Group
Java EE 8 Plan
 JSON-B
 JCache
 More CDI/EJB alignment
 Cloud, PaaS, multitenancy/SaaS
 JMS.next()?
 JAX-RS.next()?
 Modularity?
 NoSQL?
 Action-oriented Web framework/HTML 5?
 Configuration API?
 Security?
Pakistan Java User Group
References
 http://www.oracle.com/technetwork/java/javaee/index.
html
 https://blogs.oracle.com/arungupta/
 http://www.infoq.com/presentations/Java-EE-7-8
Pakistan Java User Group
Pakistan Java User Group

More Related Content

PDF
50 New Features of Java EE 7 in 50 minutes
PPT
Java EE 7 (Hamed Hatami)
PDF
Java EE 7 overview
PPTX
Getting Started with Java EE 7
PDF
Java EE 7 - Overview and Status
PDF
Building Java Desktop Apps with JavaFX 8 and Java EE 7
PPTX
Advance java Online Training in Hyderabad
PDF
JavaFX Enterprise (JavaOne 2014)
50 New Features of Java EE 7 in 50 minutes
Java EE 7 (Hamed Hatami)
Java EE 7 overview
Getting Started with Java EE 7
Java EE 7 - Overview and Status
Building Java Desktop Apps with JavaFX 8 and Java EE 7
Advance java Online Training in Hyderabad
JavaFX Enterprise (JavaOne 2014)

What's hot (19)

PDF
Android and the Seven Dwarfs from Devox'15
PDF
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUG
PPTX
Spring framework in depth
PPTX
Future of Java EE with Java SE 8
PDF
Lecture 7 Web Services JAX-WS & JAX-RS
PDF
Spring Framework - Core
KEY
Better Front-end Development in Atlassian Plugins
PDF
Running your Java EE 6 applications in the Cloud
KEY
A Walking Tour of (almost) all of Springdom
ODP
Spring 4 final xtr_presentation
PDF
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...
PDF
Java EE 6 = Less Code + More Power
PDF
20151010 my sq-landjavav2a
ODP
Spring User Guide
PPT
Spring 3.1: a Walking Tour
PDF
50 features of Java EE 7 in 50 minutes at Geecon 2014
PPTX
Spring Framework Presantation Part 1-Core
PDF
Spring5 hibernate5 security5 lab step by step
PDF
GlassFish v3 at JavaZone 09
Android and the Seven Dwarfs from Devox'15
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUG
Spring framework in depth
Future of Java EE with Java SE 8
Lecture 7 Web Services JAX-WS & JAX-RS
Spring Framework - Core
Better Front-end Development in Atlassian Plugins
Running your Java EE 6 applications in the Cloud
A Walking Tour of (almost) all of Springdom
Spring 4 final xtr_presentation
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...
Java EE 6 = Less Code + More Power
20151010 my sq-landjavav2a
Spring User Guide
Spring 3.1: a Walking Tour
50 features of Java EE 7 in 50 minutes at Geecon 2014
Spring Framework Presantation Part 1-Core
Spring5 hibernate5 security5 lab step by step
GlassFish v3 at JavaZone 09
Ad

Similar to Java ee 7 New Features (20)

PDF
What’s new in Java SE, EE, ME, Embedded world & new Strategy
PDF
Java EE 7 in practise - OTN Hyderabad 2014
PPT
Java EE 6 & Spring: A Lover's Quarrel
PDF
Boost Development With Java EE7 On EAP7 (Demitris Andreadis)
PDF
What's new in Java EE 7? From HTML5 to JMS 2.0
PDF
OTN Tour 2013: What's new in java EE 7
PDF
Java EE7 Demystified
PPTX
Java ee7 1hour
PPTX
Java EE 8
PDF
PUC SE Day 2019 - SpringBoot
PPT
Java New Evolution
PPTX
Java EE7
PDF
JUG Berlin Brandenburg: What's new in Java EE 7?
PDF
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
PDF
WSO2 AppDev platform
PPT
Java 6 [Mustang] - Features and Enchantments
PDF
Java EE 6 : Paving The Path For The Future
PDF
Java EE 7 Platform: Boosting Productivity and Embracing HTML5 - Arun Gupta (R...
PDF
Java EE 7: Boosting Productivity and Embracing HTML5
PPTX
Jax ws
 
What’s new in Java SE, EE, ME, Embedded world & new Strategy
Java EE 7 in practise - OTN Hyderabad 2014
Java EE 6 & Spring: A Lover's Quarrel
Boost Development With Java EE7 On EAP7 (Demitris Andreadis)
What's new in Java EE 7? From HTML5 to JMS 2.0
OTN Tour 2013: What's new in java EE 7
Java EE7 Demystified
Java ee7 1hour
Java EE 8
PUC SE Day 2019 - SpringBoot
Java New Evolution
Java EE7
JUG Berlin Brandenburg: What's new in Java EE 7?
WSO2Con Asia 2014 - WSO2 AppDev Platform for the Connected Business
WSO2 AppDev platform
Java 6 [Mustang] - Features and Enchantments
Java EE 6 : Paving The Path For The Future
Java EE 7 Platform: Boosting Productivity and Embracing HTML5 - Arun Gupta (R...
Java EE 7: Boosting Productivity and Embracing HTML5
Jax ws
 
Ad

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Approach and Philosophy of On baking technology
PDF
Spectral efficient network and resource selection model in 5G networks
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
Electronic commerce courselecture one. Pdf
MYSQL Presentation for SQL database connectivity
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
20250228 LYD VKU AI Blended-Learning.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation_ Review paper, used for researhc scholars
Approach and Philosophy of On baking technology
Spectral efficient network and resource selection model in 5G networks

Java ee 7 New Features

  • 1. Java EE 7 – New Features? Presenter: Shahzad Badar
  • 2. Agenda  Who am I?  Java EE 7 – New Features? Pakistan Java User Group
  • 3. Who am I? A programmer working on java since 2002 Spent most of the time in Islamabad Leading Pakistan Java User Group Working in Royal Cyber Pakistan Java User Group
  • 7. Java EE 6 - Achievements  50,000,000 + downloads  #1 choice for enterprise developers  #1 application development platform  Fastest adoptions of any Java EE release – 18 complaint servers Pakistan Java User Group
  • 8. Java EE 6 – Main Features  Web Profile  EJB packaged in war  Optional web.xml  Type-safe dependency injection  CDI Events  JSF standardizing on facelets  @Schedule Pakistan Java User Group
  • 9. JEE 7 Theme Pakistan Java User Group
  • 11. Active JSRs  JSR 342: Java EE 7 Platform  JSR 338: Java API for RESTful Web Services 2.0  JSR 339: Java Persistence API 2.1  JSR 340: Servlet 3.1  JSR 341: Expression Language 3.0  JSR 343: Java Message Service 2.0  JSR 344: JavaServer Faces 2.2  JSR 345: Enteprise JavaBeans 3.2  JSR 346: Contexts and Dependency Injection 1.1  JSR 349: Bean Validation 1.1  JSR 236: Concurrency Utilities for Java EE 1.0  JSR 352: Batch Applications for the Java Platform 1.0  JSR 353: Java API for JSON Processing 1.0  JSR 356: Java API for WebSocket 1.0 Pakistan Java User Group
  • 12. Concurrency and Java EE  Managing your own threads within a Java EE container is not recommended  Using java.util.concurrent API in a Java EE application component such as EJB or Servlet are problematic since the container and server have no knowledge of these resource  Provides simple, safe API for concurrency in Java EE  Builds on Java SE concurrency java.util.concurrent.ExecutorService Pakistan Java User Group
  • 14. Batch Applications for the Java Platform  Batch processing is execution of series of "jobs" that is suitable for non-interactive, bulk-oriented and long-running tasks.  no standard Java programming model existed for batch applications. Pakistan Java User Group
  • 16. Java EE Web Profile Enhancements  The Java Enterprise Edition Web Profile was introduced in Java EE 6  Most Web applications have significant requirements in the areas of transaction management, security, and persistence.  but are not supported by standalone servlet containers  Web Profile is provided with pre-installed, pre- integrated, fully tested Web infrastructure features.  The Java EE 7 Web Profile adds support for HTML5 with WebSockets, JSON, JAX-RS 2.0, and more. Pakistan Java User Group
  • 17. Bean Validation 1.1  Method constraints  Bean Validation artifacts injectable  Fixes, clarifications and enhancements Pakistan Java User Group
  • 18. Bean Validation 1.1 Method Level Constraints Pakistan Java User Group public void placeOrder( @NotNull String productName, @NotNull @Max(“10”) Integer quantity, @Customer String customer) { . . . } @Future public Date getAppointment() { . . . }
  • 19. JSF 2.2  HTML5 Support  @FlowScoped  @ViewScoped for CDI  Managed beans deprecated/CDI alignment  File upload component  View actions  Multi-templating  Security  Fixes and enhancements Pakistan Java User Group
  • 20. JSON Processing Support  JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write.  It is easy for machines to parse and generate.  It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.  JSON is a text format that is completely language independent but uses conventions that are familiar to programmers Pakistan Java User Group { “employee": [ { "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName":"Jones" } ] } JSON Example
  • 21. JSON Implementations for Java  org.json.  org.json.me.  Jackson JSON Processor.  Json-lib.  JSON Tools.  Stringtree.  SOJO.  Jettison.  json-taglib.  XStream.  Flexjson.  JON tools.  Argo.  jsonij.  fastjson.  mjson.  jjson.  json-simple.  json-io.  JsonMarshaller.  google-gson.  Json-smart.  FOSS Nova JSON.  Corn CONVERTER. Pakistan Java User Group a lot of implementations for other languages
  • 22. Why we need another API? Pakistan Java User Group • JSON has become a defacto data transfer standard specially for RESTful Web Services. • Java applications use different implementations to consume and process JSON data • There should be standardized Java API for JSON so that applications do not need to bundle the implementation libraries
  • 23. JSON Processing Support  API to parse and generate JSON  Streaming API  Low level efficient way to parse/generate JSON  Provide pluggability for parser/generator  Object Model  Simple, Easy-to-use high-level API  Implemented on top of Streaming API Pakistan Java User Group
  • 24. Java API for JSON Processing Writing JSON (Object Model API) Pakistan Java User Group “employees": [ { “firstName": “Asif", “lastName": ”Naveed” }, { “firstName": “Khalid", “lastName": ”Ali” } ] JsonObject jsonObject = new JsonBuilder() .beginArray(“employees") .beginObject() .add(“firstName", “Asif") .add(“lastName", “Naveed") .endObject() .beginObject () .add(“firstName", “Khalid") .add(“lastName", “Ali").endObject() .endArray() .build();
  • 25. Java API for JSON Processing Pakistan Java User Group { "firstName": "Javaid", "lastName": “Shah", "age": 19, "phoneNumber": [ { "type": “cell", "number": “03218983449" }, { "type": "fax", "number": “02142423212" } ] } Iterator<Event> it = parser.iterator(); Event event = it.next(); // START_OBJECT event = it.next(); // KEY_NAME event = it.next(); // VALUE_STRING String name = parser.getString(); // "Javaid” Reading JSON (Streaming API)
  • 26. Web Socket Support In age of Web 2.0 / 3.0 , We need interactive websites Pakistan Java User Group but In the standard HTTP model, a server cannot initiate a connection with a client nor send an unrequested HTTP response to a client; thus, the server cannot push asynchronous events to clients.
  • 27. Why WebSocket?  HTTP is half duplex  HTTP is verbose  Hacks for Server Push  Polling  Long Polling  Comet/Ajax  Complex, Wasteful, Inefficient Pakistan Java User Group
  • 32. WebSocket to rescue  TCP based, bi-directional, full-duplex messaging  Capable of sending both UTF-8 string and binary frames in any direction at the same time  Operating from a single socket across the web  As part of HTML5, the application of the client interface will become native to all modern browsers  To establish a Web Socket connection, the browser or client simply makes a request to the server for an upgrade from HTTP to a Web Socket Pakistan Java User Group
  • 33. WebSocket to rescue Pakistan Java User Group
  • 34. Pakistan Java User Group “Reducing kilobytes of data to 2 bytes…and reducing latency from 150ms to 50ms is far more than marginal. In fact, these two factors alone are enough to make Web Sockets seriously interesting to Google.”
  • 36. WebSocket API Connection Life Cycle @Singleton @WebSocketEndpoint(path=”/chat”) public class ChatServer { Set<Session> peers = ... @WebSocketOpen public void onOpen(Session peer) { peers.add(session); } @WebSocketClose public void onClose(Session session) { peers.remove(session); } ... Pakistan Java User Group
  • 37. WebSocket API WebSocket Communication . . . @WebSocketMessage public void message(String message, Session client) throws IOException { for (Session session : peers) { if (!session.equals(client)) { session.getRemote().sendObject(message); } } } } Pakistan Java User Group
  • 38. JPA 2.1 – New Features The first spec to include new features is the JPA 2.1. The new features can be described with the following short list:  Multi-Tenancy (Table discriminator)  Stored Procedures  Custom types and transformation methods - Query by Example  Dynamic PU Definition  Schema Generation (Additional mapping metadata to provide better standardization) Pakistan Java User Group
  • 39. Servlet 3.1 – New Features NIO.2 async I/O Leverage Java EE concurrency Security improvements Web Sockets support Ease-of-Development Pakistan Java User Group
  • 40. Enteprise JavaBeans 3.2 – New Features The scope of EJB 3.2 is intended to be relatively constrained in focusing on these goals.  Incremental factorization (Interceptors)  Further use of annotations to simplify the EJB programming model  Proposed Optional: BMP/CMP  Proposed Optional: Web Services invocation using RPC Pakistan Java User Group
  • 41. Java EE 8 Plan  JSON-B  JCache  More CDI/EJB alignment  Cloud, PaaS, multitenancy/SaaS  JMS.next()?  JAX-RS.next()?  Modularity?  NoSQL?  Action-oriented Web framework/HTML 5?  Configuration API?  Security? Pakistan Java User Group