SlideShare une entreprise Scribd logo
1  sur  70
Télécharger pour lire hors ligne
Main sponsor




Java	
  EE	
  7	
  and	
  HTML5:	
  Developing	
  for	
  the	
  Cloud	
  
Arun	
  Gupta,	
  Java	
  EE	
  &	
  GlassFish	
  Guy	
  
blogs.oracle.com/arungupta,	
  @arungupta	
  
The following is intended to outline our general product
    direction. It is intended for information purposes only, and
    may not be incorporated into any contract. It is not a
    commitment to deliver any material, code, or functionality,
    and should not be relied upon in making purchasing
    decisions. The development, release, and timing of any
    features or functionality described for Oracle s products
    remains at the sole discretion of Oracle.


2   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 6 Platform
                                                                           December 10, 2009


3   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 6 – Key Statistics

    •  40+ Million Java EE 6 Component Downloads
    •  #1 Choice for Enterprise Developers
    •  #1 Application Development Platform
    •  Fastest implementation of a Java EE release




4   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Top Ten Features in Java EE 6
    1.  EJB packaging in a WAR
    2.  Servlet and CDI extension points
    3.  Optional web.xml!
    4.  Type-safe dependency injection
    5.  CDI Events
    6.  JSF standardizing on Facelets
    7.  EJBContainer API
    8.  @Schedule!
    9.  EJB No Interface View
    10. Web Profile
5   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Today’s Cloud Offerings are all Proprietary


    Infrastructure as                                                      Platform as   Software as
        a Service                                                           a Service     a Service




6   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 7




7   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 7 and 8 – Focus Areas

                 Cloud                                                              Modularity                   HTML5
•  Provisioning                                                                •  Building on Jigsaw      •  Emerging Web
                                                                                                             Standards require a
•  Elastic & Autonomic                                                         •  Focus on OSGi interop      programming model
   Scalability
                                                                               •  Supporting Profiles &   •  JSON, WebSockets,
•  Multi-Tenancy                                                                  Modular Applications       off-line, APIs & DOM




    8   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 7 Focus: Platform as a Service

    •  Next logical step for Java EE
          –  J2EE à Java EE 6 : The Java EE Platform provides services
          –  Java EE 7 : The Java EE Platform IS a service

    •  PaaS support entails evolutionary change

    •  Basic form of SaaS

    •  Provide way for customers and users to leverage public,
       private, and hybrid clouds
9   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Roles

             Developer
                                                                                                                 PaaS Provider

     PaaS
 Customer/                                                       JVM JVM JVM        JVM JVM JVM   JVM JVM JVM
    Tenant                                                                Machine     Machine       Machine            PaaS Product
                                                                                                                       Provider

                                                                 JVM JVM JVM        JVM JVM JVM   JVM JVM JVM
Deployer
                                                                          Machine     Machine       Machine           PaaS Account
                                                                      Tenant 1       Tenant 2      Tenant 3           Manager
 Application
  Submitter
                                                                                                                PaaS
                                                                                                                Administrator
                           Application
                         Administrator

  10   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Existing Java EE model
                                                                                                               Database
                                                                             1   Provision and Initialize       Service
     •  Configure Java EE resources –
        JDBC, JMS etc                                                                                           LDAP
                                                                             2                                 Service
     •  Deploy Application EAR                                                     Provision and Initialize




                                                                                                              Messaging
                                                                             3    Provision and Initialize
                                                                                                               Service

                                                                                                              Application
                                                                             4    Provision and Initialize
                                                                                                               Container



                                                                             5   Deploy Application (EAR/
                                                                                      GAR/SAR …)




11    Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 7 Model: Auto-Provision Services
     from Application Dependencies
                                                                                                              Cloud Administration
•  Provision and deploy application                                          1   Provision and Initialize
                                                                                                                    Service
resources (e.g. LDAP stripe, data
source instantiation and                                                                                          Database
                                                                             2                                     Service
connection …)                                                                      Provision and Initialize




•  Extensible Deployment Models                                                                                    LDAP
   Supporting Multiple Frameworks                                            3    Provision and Initialize        Service
     •  Spring, Seam, Play …
                                                                                                                 Messaging
                                                                             4    Provision and Initialize
                                                                                                                  Service

                                                                                                                Application
                                                                             5   Deploy Application (EAR/
                                                                                      GAR/SAR …)
                                                                                                                 Container


12    Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Services

     •  Cloud apps consume services
           –  Persistence, queueing, mail, caching, …
     •  Service metadata facilitates ease of use when deploying
        into the cloud
           @DataSourceDefinition(!
               name=“java:app/jdbc/myDB”,!
                        className=“oracle.jdbc.pool.OracleDataSource”,!
                        isolationLevel=TRANSACTION_REPEATABLE_READ,!
                        initialPoolSize=5!
           ) !



13   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Services

     •  Cloud apps consume services
           –  Persistence, queueing, mail, caching, …
     •  Service metadata facilitates ease of use when deploying
        into the cloud
           @JMSConnectionFactoryDefinition(

             name=“java:app/myJMSConnectionFactory”,
             className=“javax.jms.QueueConnectionFactory”

             resourceAdapterName=“myJMSRA”) !
           !
           @JMSDestinationDefinition(

             name=“java:app/myQueue”,

             className=“javax.jms.Queue”

             destinationName=“myQueue1”)!
14   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Services

     •  Cloud apps consume services
           –  Persistence, queueing, mail, caching, …
     •  Service metadata facilitates ease of use when deploying
        into the cloud
           @MailSessionDefinition(!
               name=“java:app/mailSession”,

               host=“example.com”

               from=“MyService@example.com”!
           ) !




15   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Services

     •  Cloud apps consume services
           –  Persistence, queueing, mail, caching, …
     •  Service metadata facilitates ease of use when deploying
        into the cloud
           @ConnectorResourceDefinition(!
               name=“java:app/myCustomConnector”,!
                        className=“com.extraServices.CustomConnector.class”,!
                        properties= {…}!
           ) !




16   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Elasticity
                                                                                   Java EE 7 Focus:
                                                                                  Move the Bar Right



                                                                             Elasticity Continuum


                                                                                  Java EE Cluster            Elastic Cluster
                                                                                                                Elastic Cluster
                                                                                                                                   Capacity
                                                                                                                                      Ca
                                                                                                                                  on Demand



Single node                                                                    Java EE Multi-Node        Dynamic Self Adjusting
Non-Elastic                                                                  Multi-Instance Clustering    SLA Driven Elasticity

      •  Service Levels
      •  Minimum and Maximum Instances
      •  Futures – Self Adjustment, Capacity On Demand
 17   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Demo
     PaaSing a Java EE Application in the Cloud




     glassfish.org/javaone2011


18   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Conference Planning in the Cloud

Java EE Application

       JSF                                JPA                               Deploy

                                   Services
      EJB                          Metadata
                                                                               <glassfish-services>

                                                                               <service-description init-type="LB" name="ConferencePlanner-lb">

                                                                                   <template id="LBNative"/>

                                                                                   <configurations>

                                                                                      <configuration name="https-port" value="50443"/>

                                                                                      <configuration name="ssl-enabled" value="false"/>

                                                                                      <configuration name="http-port" value="50080"/>

                                                                                   </configurations></service-description>

                                                                               <service-description init-type="JavaEE" name="ConferencePlanner">

                                                                                   <characteristics>

                                                                                      <characteristic name="service-type" value="JavaEE"/>

                                                                                   </characteristics>

                                                                                   <configurations>

                                                                                      <configuration name="max.clustersize" value="4"/>

                                                                                      <configuration name="min.clustersize" value="2"/>

                                                                                   </configurations>

                                                                               </service-description>!
                                                                               . . .

                                                                               </glassfish-services>!



19   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Service Provisioning

                                                                              Load
                                                                             Balancer



                                                 Java EE                    Java EE    ...   Java EE


                                                                            Database



20   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Multi-tenancy in Java EE 7
     •  Support for separate isolated instances of the same app for
        different tenants
           –  One application instance per tenant
           –  Tenants correspond to units of isolation
           –  Multitenant apps are declared as such
           –  Each instance customized and deployed for a single tenant
           –  Limited form of SaaS

     •  Mapping to tenant done by the container
     •  Tenant id available to application
           –  E.g., under java:comp/tenantId!

21   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 7 – Candidate JSRs

                                           Web
                                                                            JAX-RS     JSF 2.2                                      Jcache 1.0
                                         Container                                                 EL 3.0                           (JSR 107)
        CDI                             Extensions                            2.0      JSP 2.2
     Extensions




                                                                                                            Bean Validation 1.1
                                                                                                                                   Concurrency
                                                                              Servlet 3.1                                           Utilities 1.0
                                                                                                                                    (JSR 236)
                                                                                                                                       State
                        CDI 1.1 / Interceptors 1.1 / JSR 250 1.1                                                                  Management 1.0
                                                                                                                                    (JSR 350)
                                                                                                                                       Batch
        Managed Beans 1.0                                                               EJB 3.2                                   Processing 1.0
                                                                                                                                    (JSR 352)
                                                                                                                                     JSON 1.0
                    JPA 2.1                                                  JTA 1.1             JMS 2.0                             (JSR 353)



22   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 7 Early Draft

     •  Requires Java SE 7
     •  Added new roles
     •  Resource definition metadata
              –  DataSourceDefinition,
                 JMSConnectionFactoryDefinition,
                 JMSDestinationDefinition, MailSessionDefinition,
                 ConnectorResourceDefinition!
              –  Pre-provisioned or shared resource


23   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE 7 Early Draft

     •  Default Data Source java:comp/defaultDataSource!
     •  Default JMS Connection Factory java:comp/
           defaultJMSConnectionFactory!
     •  Tenant Identifier: java:comp/tenantId!
     •  Made optional
              –  EJB Entity Beans, EJB QL, JAX-RPC, Deployment API, JAXR




24   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java Persistence API 2.1

     •  @NamedStoredProcedureQuery,
        StoredProcedureQuery!
     •  Bulk update/delete using Criteria!
     •  User-defined functions using FUNCTION!
     •  Persistence Context Synchronization




25   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JPA 2.1
     Stored Procedures
     @Entity

     •  Stored Procedures
     @NamedStoredProcedureQuery(name="topGiftsStoredProcedure",
     procedureName="Top10Gifts")

     public class Product {

      . . .

     }!


     StoredProcedreQuery query =
     EntityManager.createNamedStoredProcedureQuery("topGiftsStoredProcedure");!
     query.registerStoredProcedureParameter(1, String.class, ParameterMode.INOUT);!
     query.setParameter(1, "top10");!
     query.registerStoredProcedureParameter(2, Integer.class, ParameterMode.IN);!
     query.setParameter(2, 100);!
     // there are other setParameter methods for defining the temporal type

     . . .!
     query.execute();!
     String response = query.getOutputParameterValue(1);!
     !

26    Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JPA 2.1
         Criteria Update/Delete
     CriteriaUpdate<Customer> q = cb.createCriteriaUpdate(Customer.class); 

         •  Update/Delete using Criteria
     Root<Customer> c = q.from(Customer.class); 

     q.set(c.get(Customer_.status), "outstanding")

      .where(cb.lt(c.get(Customer_.balance), 10000));

     . . .!
     @PersistenceContext EntityManager em;
            UPDATE Customer c!
     Query query = em.createQuery(q);
                 SET c.status = 'outstanding'!
     query.executeUpdate();
                           WHERE c.balance < 10000!
     

     !

         CriteriaDelete<Customer> q = cb.createCriteriaDelete(Customer.class); 

         Root<Customer> c = q.from(Customer.class); 

         q.where(cb.equal(c.get(Customer_.status), "inactive"),

                 cb.isEmpty(c.get(Customer_.orders)));

         . . .!
         @PersistenceContext EntityManager em;
           DELETE FROM Customer c

         Query query = em.createQuery(q);
                WHERE c.status = 'inactive'

         query.executeUpdate();
                          AND c.orders IS EMPTY!
         

27
         !Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JAX-RS 2.0
     Client-side API
     •  Client-side API
 URL url = new URL("http://.../atm/balance");

 HttpURLConnection conn = (HttpURLConnection) url.openConnection();

 conn.setRequestMethod("GET");

 conn.setDoInput(true);

 conn.setDoOutput(false);

             

 BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));

 String line;

 while ((line = br.readLine()) != null) {

     out.println(line);

 }!


 Client client = ClientFactory.newClient();!
 String balance = client.target("http://.../atm/balance")!
                        .request("text/plain")!
                        .get(String.class);!


28   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JAX-RS 2.0
     Filters and Interceptors
     @Provider

     class LoggingFilter implements RequestFilter, ResponseFilter {!
         @Override

         public FilterAction preFilter(FilterContext ctx) throws IOException {

             logRequest(ctx.getRequest());

             return FilterAction.NEXT;

         }

     !
         @Override

         public FilterAction postFilter(FilterContext ctx) throws IOException {

             logResponse(ctx.getResponse());

             return FilterAction.NEXT;

         }

     }!


29   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JAX-RS 2.0
         Client-side Async
         •  Client-side Async
Client client = ClientFactory.newClient();

Future<String> future = client.target("http://.../atm/{card}/balance")

                              .pathParam("card", "1111222233334444")

                              .queryParam("pin", "1234")

                              .request("text/plain")

                              .async()

                              .get(

                                 new InvocationCallback<String>() {

                                     public void completed(String result) {

                                     }



                                                                                           public void failed(InvocationException e) {

                                                                                           }

                                                                                      }

                                                                                );!

    30   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JAX-RS 2.0
     Bean Validation Integration
     •  Integration with Bean Validation
      @Path("/")

     class ProductResource {!
         @POST

         @Consumes(MediaType.APPLICATION_FORM_URLENCODED)

         public void addProduct(@NotNull 

                                @FormParam("productName") String name,

                                @NotNull 

                                @Category 

                                @FormParam("category") String category) {

             . . .

         }

     }!




31   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JAX-RS 2.0
     Server-side content negotiation
     @Path("/")

     •  Server-side Content Negotiation
     class ProductResource {!
         @GET

         @Produces({ "text/xml;qs=0.75", "application/json"})

         public Product[] getProducts() {

             . . .

         }

     }!




32   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JavaServer Faces 2.2

     •  Integration with HTML5 forms
     •  Queue control for Ajax requests
     •  File Upload component (Non-Ajax & Ajax)
     •  Injection in all JSF artifacts – including converters &
        validators
     •  @FaceletsResourceResolver!
     •  Instantiating composite components in Java
     •  . . .
33    Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Contexts & Dependency Injection 1.1

     •  Embedded mode to startup outside Java EE container
     •  Global ordering of interceptors and decorators
     •  API for managing built-in contexts
     •  Send Servlet events as CDI events
     •  . . .




34   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Bean Validation 1.1

     •  Code Sample
@MethodValidated

public class OrderService { 

    public OrderService(@NotNull CreditCardProcessor creditCardProcessor) { . . .   }



           public void placeOrder(

                    @NotNull 

                    @Size(min=3, max=20) String customerCode, 

                    @NotNull @Valid Item item, 

                    @Min(1) int quantity) { . . . }



           @NotNull @Size(min=1)

           public Set<CreditCardProcessor> getCreditCardProcessors() { ... }



           @NotNull @Future

           public Date getNextAvailableDeliveryDate() { ... } !
     } !



35   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java Message Service 2.0

     •  Simplified API
           –  Less verbose
           –  Reduce the number of objects needed to send/receive message
           –  Allow resource injection
           –  Alternative, not replacement, for standard API
           –  Remove JMSException, where possible
     •  Connection, Session and other objects are
        AutoCloseable
     •  New methods – no need for redundant arguments
36   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JMS 1.1 – Sending a Message (Java EE)
         Standard API

     @Resource(lookup = "jms/connectionFactory ")

     ConnectionFactory connectionFactory; 

     

     @Resource(lookup="jms/inboundQueue") 

     Queue inboundQueue; 

     

     public void sendMessageOld (String payload) throws JMSException { 

     try (Connection connection = connectionFactory.createConnection()) { 

           Session session = connection.createSession(); 

           MessageProducer messageProducer = session.createProducer(inboundQueue); 

           TextMessage textMessage = session.createTextMessage(payload);

           messageProducer.send(textMessage); 

       } !
     } !



37       Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JMS 2.0 – Sending a Message (Java EE)
     New Simplified API

     @Resource(mappedName="jms/contextFactory") !
     ConnectionFactory connectionFactory;!
     !
     @Resource(mappedName="jms/inboundQueue") !
     Queue inboundQueue;!
     !
     public void sendMessage(String payload) {!
        try (JMSContext context = connectionFactory.createContext();){!
              context.send(inboundQueue,payload);!
        }!
     }!




38   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JMS 2.0 – Sending a Message (Java EE)
     New Simplified API (with Injection)
     @Inject!
     @JMSConnectionFactory("jms/contextFactory") !
     JMSContext context;!
     !
     @Resource(mappedName="jms/inboundQueue") !
     Queue inboundQueue;!
     !
     public void sendMessage(String payload) {!
         context.send(inboundQueue,payload);!
     }!




39   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JSON 1.0 (JSR 353)
     javax.json.*
     •  Object model API to represent JSON
           –  Similar to DOM API in XML world
     •  Streaming API to produce/consume JSON
           –  Similar to StAX API in XML world
     JSR Supporters
           –  fasterxml.com (Jackson)
           –  Doug Crockford (json.org)
     •  Spec: json-processing-spec.java.net
     •  Reference Implementation: jsonp.java.net
40   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JSON 1.0 (JSR 353)

     •  DOM-based APIs (javax.json.* package)
           –  JSONBuilder – Builds a JSON object
           –  JSONReader – Reads a JSON object or array from the stream
           –  JSONWriter – Writes a JSON object or array to the stream
     •  Streaming APIs (javax.json.stream.* package)
           –  JsonGenerator – Streaming JSON generator
           –  JsonParser – Allows forward, read-only access to JSON



41   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JSON 1.0 (JSR 353)
       Code Sample - JsonBuilder
JsonObject value = new JsonBuilder()
                                         {	
  
    .beginObject()
                                                           	
  	
  	
  	
  	
  "firstName":	
  "John",	
  	
  
        .add("firstName", "John") 
                                           	
  	
  	
  	
  	
  "lastName":	
  "Smith",	
  	
  
        .add("lastName", "Smith") 
                                           	
  	
  	
  	
  	
  "age":	
  25,	
  
        add("age", 25)
                                                       	
  	
  	
  	
  	
  "address"	
  :	
  {	
  
        .beginObject("address”)

            .add("streetAddress", "21 2nd Street”)
                           	
  	
  	
  	
  	
  	
  	
  	
  	
  "streetAddress",	
  "21	
  2nd	
  Street",	
  
            .add("city", "New York”)
                                         	
  	
  	
  	
  	
  	
  	
  	
  	
  "city",	
  "New	
  York",	
  
            .add("state", "NY”)
                                              	
  	
  	
  	
  	
  	
  	
  	
  	
  "state",	
  "NY",	
  
            .add("postalCode”, "10021”)
                                      	
  	
  	
  	
  	
  	
  	
  	
  	
  "postalCode",	
  "10021"	
  
        .endObject()
                                                         	
  	
  	
  	
  	
  	
  },	
  
        .beginArray("phoneNumber")

            .beginObject() 
                                                  	
  	
  	
  	
  	
  	
  "phoneNumber":	
  [	
  
                .add("type", "home") 
                                        	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  {	
  "type":	
  "home",	
  	
  
                .add("number", "212 555-1234") 
                              	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  "number":	
  "212	
  555-­‐1234"	
  },	
  
            .endObject() 
                                                    	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  {	
  "type":	
  "fax",	
  	
  
            .beginObject() 
                                                  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  "number":	
  "646	
  555-­‐4567"	
  }	
  
                .add("type", "home") 

                .add("number", "646 555-4567") 

                                                                              	
  	
  	
  	
  	
  	
  ]	
  
            .endObject() 
                                                    	
  }	
  
        .endArray() 

    .endObject() 

.build(); !

  42   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JSON 1.0 (JSR 353)
        Code Sample – JsonReader, JsonWriter

String json = "...";

JsonReader reader = new JsonReader(new StringReader(json));

JsonValue value = reader.readObject();

reader.close(); !



JsonWriter jsonWriter = new JsonWriter(new FileWriter(...));

JsonObject jsonObject = new JsonBuilder()

                               .beginObject()

                               . . .

                               .endObject()

                        .build();!
jsonWriter.writeObject(jsonObject);

jsonWriter.close(); !

   43   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JSON 1.0 (JSR 353)
        Code Sample – JsonGenerator, JsonParser
JsonGenerator generator = new JsonGenerator(new FileWriter(...));

generator

  .beginObject()

  . . .

    .beginArray()

    . . .

    .endArray()

  .endObject()

.build();
                                                                     START_OBJECT!
generator.close(); !                                                           END_OBJECT!
                                                                               START_ARRAY!
                                                                               END_ARRAY!
String json = "..."; 
                                                         KEY_NAME!
JsonParser parser = new JsonParser(new StringReader(json));
                   VALUE_xxx!
Iterator<Event> it = reader.iterator();

Event event = it.next(); !
   44   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Transparency
     •  Oracle’s Java EE 7 JSRs are run in the open on java.net
           –  http://javaee-spec.java.net
           –  One project per spec – e.g., jpa-spec, jax-rs-spec, jms-spec…
     •  Publicly viewable Expert Group mail archive
           –  Users observer list gets copies of all Expert Group emails
     •  Publicly viewable download area
     •  Publicly viewable issue tracker
     •  Commitment to update to JCP 2.8 Process

45   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Status and Schedule


•  All JSRs up and running
•  Early Drafts
  –  Java EE 7 Platform, JSF 2.2, JAX-RS 2.0, JPA 2.1, CDI 1.1, EJB 3.2,
     JMS 2.0, Bean Validation 1.1, Expression Language 3.0

•  Final release target: Q2 2013



  46   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
HTML 5 is Disruptive

     •  HTML 5 is the new UI across devices
           –  Offline, Real-time Communication, File access, Semantic markup,
              Multimedia, CSS3
     •  HTML 5 Requires New Programming Model
           •  Servers no longer generating markup language
              •  Event Driven
              •  JavaScript is part of the domain model
              •  JSON is the payload, not just HTML



47   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Java EE: Investments for HTML5

     •  WebSocket and Server Sent Events Infrastructure
     •  WebSocket SDK and JSR-356
          –  Simplify the programming model for Java EE




48   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
WebSocket
     •  Part of HTML5 Specification
     •  Bi-directional
     •  Full-duplex
     •  Over a single TCP connection
     •  Examples
           –  Real-time online games
           –  Collaborative platforms
           –  Social Networking


49   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
WebSocket Protocol – Handshake
     tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17
     GET /mychat HTTP/1.1!
     Host: server.example.com!                                              Request
     Upgrade: websocket!
     Connection: Upgrade!
     Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==!
     Sec-WebSocket-Protocol: chat, superchat!
     Sec-WebSocket-Version: 13!
     Origin: http://example.com

     <EMPTY LINE>!
     !
     HTTP/1.1 101 Switching Protocols!
     Upgrade: websocket!                                                    Response
     Connection: Upgrade!
     Sec-WebSocket-Accept: HSmrc0sMlYUkAGmm5OPpG2HaGWk=!
     Sec-WebSocket-Protocol: chat

     <EMPTY LINE>!
50   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
WebSocket Protocol – Framing
     tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17
     •  Wire format of messages
     •  Design Philosophy – Minimum framing required
     •  Data Frames
           –  Text & Binary
                    •  Blob, ArrayBuffer
     •  Control Frames
           –  Protocol-level signaling




51   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
WebSocket API
     dev.w3.org/html5/websockets/




52   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
WebSocket SDK
     websocket-sdk.java.net

     •  Annotation Driven Model
              –  Allows you to turn POJOs into WebSocket Endpoints
              –  Support for Server Sent Events
              –  WebLogic 12.1.2 support
              –  Runs on GlassFish 4.0 Early Builds Now!
     •  WebSocket SDK and JSR-356
              –  Simplify the programming model for Java EE
              –  Integrated with Java EE Platform e.g. CDI


53   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
WebSocket Example

     import org.glassfish.websocket.api.annotations.WebSocketClose;

     import org.glassfish.websocket.api.annotations.WebSocket;

     import org.glassfish.websocket.api.annotations.WebSocketMessage;   !
     !
     @WebSocket(path=”/HelloWorld")

     public class HelloWorld{

         

         @WebSocketMessage

         public String sayHelloWorld(String caller) {

             return "hello " + caller + "!";

         }

           !
                 @WebSocketClose

                 public void goodbye() {

                     System.out.println(“Adios”);

                  }

     }!
https://blogs.oracle.com/arungupta/entry/websockets_and_java_ee_7
54   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Server-Sent Events
     •  Part of HTML5 Specification
     •  Server-push notifications
     •  Cross-browser JavaScript API: EventSource!
     •  Message callbacks
     •  MIME type: text/eventstream!




55   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
EventSource API
     dev.w3.org/html5/eventsource/




56   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Server-Sent Events Example
      Client-side


     var url = 'http://' + document.location.host + '/glassfish-sse/simple’;

     eventSource = new EventSource(url);!
     eventSource.onmessage = function (event) {

        var theParagraph = document.createElement('p');

        theParagraph.innerHTML = event.data.toString();

        document.body.appendChild(theParagraph);

     }!




     https://blogs.oracle.com/arungupta/entry/server_sent_events_using_glassfish
57     Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Server-Sent Events Example
      Server-side Handler


     @ServerSentEvent("/simple”)

     public class MySimpleHandler extends ServerSentEventHandler {!
      

        public void sendMessage(String data) {

           try {

              connection.sendMessage(data);

           } catch (IOException ex) {

              . . .

           }

        }

     }!


     https://blogs.oracle.com/arungupta/entry/server_sent_events_using_glassfish
58     Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Server-Sent Events Example
      Server-side Business Logic

     @Stateless!
     public class SimpleEvent {!
      !
        @Inject @ServerSentEventContext("/simple")!
        ServerSentEventHandlerContext<MySimpleHandler> simpleHandlers;!
      !
        @Schedule(hour="*", minute="*", second="*/10")!
        public void sendDate() {!
           for(MySimpleHandler handler : simpleHandlers.getHandlers()) {!
              handler.sendMessage(new Date().toString());!
           }!
        }!
     }!


     https://blogs.oracle.com/arungupta/entry/server_sent_events_using_glassfish
59     Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
SSE & WebSocket – competing technologies ?
     •  WebSocket can send/receive, SSE is server-push
     •  SSE are over HTTP, WebSocket require servers to
        understand the protocol
     •  SSE provides simple and easy-to-use for server-push,
        WebSocket is slightly complex and has overhead
     •  WebSocket provide real-time updates, SSE can be
        configured



60   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Project Avatar
     Complete Solution for Dynamic Rich Clients



HTML 5 browser


HTML & Java                                                                 JSON over
hybrid application                                                          WebSocket




Java application                                                                        Java EE Cloud

61   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JPA-RS: Building Block of Project Avatar
     •  Exposes JPA mapped entities over REST via JAX-RS
     •  HTTP Methods
           –  GET, PUT, POST, DELETE!
     •  Content-Type and Accept-based content negotiation
           –  XML or JSON
     •  Client
           –  HTML5 with JavaScript (primary focus)
           –  JavaFX


62   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JPA-RS: Current Programming Model
                                                                                        GET http://…/order/4

                                                                                JAX-RS

                                                          Customer               Product            Order



                                                                            Shop Persistence Unit


                                                                                  JPA



63   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JPA-RS: Thin Server Architecture
                                                                                   GET http://…/<pu-name>/<entity>/4

                                                                            JPA-RS

                                                    Shop PU                               … PU




                                                                             JPA



64   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
JPA-RS: Building Block of Project Avatar
     Server-side Business Logic
     •  Persistence Unit Operations
           –  /<root-uri>/<pu-name>/entity!
           –  /<root-uri>/<pu-name>/query!
           –  /<root-uri>/<pu-name>/metadata!
     •  Supports invocation of @NamedQueries via HTTP
     •  Server-caching – EclipseLink clustered cache
     •  Dynamic Persistence also supported
           –  Entities defined via metadata – no Java classes required
           –  Enables persistence for HTML5/JavaScript apps

65   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
NoSQL Stores
     •  No standards
     •  Differing APIs and feature sets
     •  Some offer query language/API – some not




66   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
EclipseLink NoSQL
     •  Support JPA access to NoSQL databases
     •  Define annotations and XML to identify NoSQL stored
        entities (e.g., @NoSQL)
     •  Support JPQL subset for each
           –  Key principal: leverage what’s available
     •  Initial support for MongoDB and Oracle NoSQL.
     •  Support mixing relational and non-relational data in
        single composite persistence unit

67   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
GlassFish Roadmap
GlassFish v3                                                                        GlassFish Server 3.1               GlassFish Server 3.1.2
•  Java EE 6 support                                                                •  Centralized administration      •  Bug Fixes
•  Single instance                                                                  •  Clustering / HA                 •  Incremental features
•  GlassFish Enterprise Mgr                                                         •  GlassFish Server Control




 2009                                               2010                                           2011               2012                       2013


     GlassFish Server 3.0.1                                                                 GlassFish Server 3.1.1             GlassFish Server 4
     •  Oracle branding                                                                     •  Bug fixes                       •  Java EE 7
     •  Oracle platform support                                                             •  Updated components              •  Multitenancy
     •  Oracle interoperability                                                             •  Incremental features            •  PaaS-enablement




        68   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Call to Action

     •  Java EE 7 Expert Group Project
           – http://javaee-spec.java.net
     •  Java EE 7 Reference Implementation
           – http://glassfish.org
     •  The Aquarium
           –  http://blogs.oracle.com/theaquarium

69   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
70   Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Contenu connexe

Tendances

Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012
Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012
Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012Arun Gupta
 
JAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web ServicesJAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web ServicesArun Gupta
 
Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0Arun Gupta
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012Arun Gupta
 
GlassFish REST Administration Backend
GlassFish REST Administration BackendGlassFish REST Administration Backend
GlassFish REST Administration BackendArun Gupta
 
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012Arun Gupta
 
Jfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationJfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationArun Gupta
 
Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7Arun Gupta
 
GIDS 2012: Java Message Service 2.0
GIDS 2012: Java Message Service 2.0GIDS 2012: Java Message Service 2.0
GIDS 2012: Java Message Service 2.0Arun Gupta
 
GIDS 2012: PaaSing a Java EE Application
GIDS 2012: PaaSing a Java EE ApplicationGIDS 2012: PaaSing a Java EE Application
GIDS 2012: PaaSing a Java EE ApplicationArun Gupta
 
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUG
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUGThe Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUG
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUGArun Gupta
 
Have You Seen Java EE Lately?
Have You Seen Java EE Lately?Have You Seen Java EE Lately?
Have You Seen Java EE Lately?Reza Rahman
 
TDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE ApplicationTDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE ApplicationArun Gupta
 
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...Arun Gupta
 
JAX-RS 2.0: RESTful Web services on steroids
JAX-RS 2.0: RESTful Web services on steroidsJAX-RS 2.0: RESTful Web services on steroids
JAX-RS 2.0: RESTful Web services on steroidscodemotion_es
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudArun Gupta
 

Tendances (19)

Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012
Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012
Java EE 7: Developing for the Cloud at Java Day, Istanbul, May 2012
 
JAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web ServicesJAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web Services
 
Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0Java Summit Chennai: JAX-RS 2.0
Java Summit Chennai: JAX-RS 2.0
 
RESTing with JAX-RS
RESTing with JAX-RSRESTing with JAX-RS
RESTing with JAX-RS
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
 
GlassFish REST Administration Backend
GlassFish REST Administration BackendGlassFish REST Administration Backend
GlassFish REST Administration Backend
 
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
The Java EE 7 Platform: Productivity & HTML5 at JavaOne Latin America 2012
 
Java EE 7 - Overview and Status
Java EE 7  - Overview and StatusJava EE 7  - Overview and Status
Java EE 7 - Overview and Status
 
Jfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationJfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE Application
 
Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7Java Summit Chennai: Java EE 7
Java Summit Chennai: Java EE 7
 
GIDS 2012: Java Message Service 2.0
GIDS 2012: Java Message Service 2.0GIDS 2012: Java Message Service 2.0
GIDS 2012: Java Message Service 2.0
 
GIDS 2012: PaaSing a Java EE Application
GIDS 2012: PaaSing a Java EE ApplicationGIDS 2012: PaaSing a Java EE Application
GIDS 2012: PaaSing a Java EE Application
 
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUG
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUGThe Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUG
The Java EE 7 Platform: Productivity &amp; HTML5 at San Francisco JUG
 
Have You Seen Java EE Lately?
Have You Seen Java EE Lately?Have You Seen Java EE Lately?
Have You Seen Java EE Lately?
 
TDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE ApplicationTDC 2011: OSGi-enabled Java EE Application
TDC 2011: OSGi-enabled Java EE Application
 
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...
Java EE 6 & GlassFish 3: Light-weight, Extensible, and Powerful @ Silicon Val...
 
Java EE 7 overview
Java EE 7 overviewJava EE 7 overview
Java EE 7 overview
 
JAX-RS 2.0: RESTful Web services on steroids
JAX-RS 2.0: RESTful Web services on steroidsJAX-RS 2.0: RESTful Web services on steroids
JAX-RS 2.0: RESTful Web services on steroids
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the Cloud
 

Similaire à Java EE 7 and HTML5: Developing for the Cloud

Jfokus 2012 : The Java EE 7 Platform: Developing for the Cloud
Jfokus 2012 : The Java EE 7 Platform: Developing for the CloudJfokus 2012 : The Java EE 7 Platform: Developing for the Cloud
Jfokus 2012 : The Java EE 7 Platform: Developing for the CloudArun Gupta
 
Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011Arun Gupta
 
Java EE 7 at JAX London 2011 and JFall 2011
Java EE 7 at JAX London 2011 and JFall 2011Java EE 7 at JAX London 2011 and JFall 2011
Java EE 7 at JAX London 2011 and JFall 2011Arun Gupta
 
The Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudThe Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudArun Gupta
 
Introduction to java_ee
Introduction to java_eeIntroduction to java_ee
Introduction to java_eeYogesh Bindwal
 
Sun Java EE 6 Overview
Sun Java EE 6 OverviewSun Java EE 6 Overview
Sun Java EE 6 Overviewsbobde
 
Java ee 7 platform developing for the cloud kshitiz saxena
Java ee 7 platform developing for the cloud   kshitiz saxenaJava ee 7 platform developing for the cloud   kshitiz saxena
Java ee 7 platform developing for the cloud kshitiz saxenaIndicThreads
 
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011Arun Gupta
 
SPEC INDIA Java Case Study
SPEC INDIA Java Case StudySPEC INDIA Java Case Study
SPEC INDIA Java Case StudySPEC INDIA
 
Java EE7 in action
Java EE7 in actionJava EE7 in action
Java EE7 in actionAnkara JUG
 
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 India
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 IndiaJava EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 India
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 IndiaArun Gupta
 
Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...
Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...
Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...Sivakumar Thyagarajan
 
Servidores de Aplicação: por que ainda precisamos deles?
Servidores de Aplicação: por que ainda precisamos deles?Servidores de Aplicação: por que ainda precisamos deles?
Servidores de Aplicação: por que ainda precisamos deles?Bruno Borges
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1sandeep54552
 

Similaire à Java EE 7 and HTML5: Developing for the Cloud (20)

Jfokus 2012 : The Java EE 7 Platform: Developing for the Cloud
Jfokus 2012 : The Java EE 7 Platform: Developing for the CloudJfokus 2012 : The Java EE 7 Platform: Developing for the Cloud
Jfokus 2012 : The Java EE 7 Platform: Developing for the Cloud
 
Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011Java EE Technical Keynote at JavaOne Latin America 2011
Java EE Technical Keynote at JavaOne Latin America 2011
 
Java EE 7 at JAX London 2011 and JFall 2011
Java EE 7 at JAX London 2011 and JFall 2011Java EE 7 at JAX London 2011 and JFall 2011
Java EE 7 at JAX London 2011 and JFall 2011
 
The Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudThe Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the Cloud
 
Introduction to java_ee
Introduction to java_eeIntroduction to java_ee
Introduction to java_ee
 
JMS 2.0
JMS 2.0JMS 2.0
JMS 2.0
 
Sun Java EE 6 Overview
Sun Java EE 6 OverviewSun Java EE 6 Overview
Sun Java EE 6 Overview
 
Java ee 7 platform developing for the cloud kshitiz saxena
Java ee 7 platform developing for the cloud   kshitiz saxenaJava ee 7 platform developing for the cloud   kshitiz saxena
Java ee 7 platform developing for the cloud kshitiz saxena
 
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
 
SPEC INDIA Java Case Study
SPEC INDIA Java Case StudySPEC INDIA Java Case Study
SPEC INDIA Java Case Study
 
Java EE7 in action
Java EE7 in actionJava EE7 in action
Java EE7 in action
 
JavaOne Update zur Java Plattform
JavaOne Update zur Java PlattformJavaOne Update zur Java Plattform
JavaOne Update zur Java Plattform
 
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 India
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 IndiaJava EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 India
Java EE 6 & GlassFish v3: Paving the path for the future - Tech Days 2010 India
 
Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...
Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...
Handling Service Orchestration in the Cloud for GlassFish - JavaOne, San Fran...
 
JavaCro'14 - WebLogic-GlassFish-JaaS Strategy and Roadmap – Duško Vukmanović
JavaCro'14 - WebLogic-GlassFish-JaaS Strategy and Roadmap – Duško VukmanovićJavaCro'14 - WebLogic-GlassFish-JaaS Strategy and Roadmap – Duško Vukmanović
JavaCro'14 - WebLogic-GlassFish-JaaS Strategy and Roadmap – Duško Vukmanović
 
Java EE 6 and GlassFish portfolio
Java EE 6 and GlassFish portfolioJava EE 6 and GlassFish portfolio
Java EE 6 and GlassFish portfolio
 
Servidores de Aplicação: por que ainda precisamos deles?
Servidores de Aplicação: por que ainda precisamos deles?Servidores de Aplicação: por que ainda precisamos deles?
Servidores de Aplicação: por que ainda precisamos deles?
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
 
Introduction To JavaFX 2.0
Introduction To JavaFX 2.0Introduction To JavaFX 2.0
Introduction To JavaFX 2.0
 
JDK versions and OpenJDK
JDK versions and OpenJDKJDK versions and OpenJDK
JDK versions and OpenJDK
 

Plus de Arun Gupta

5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdfArun Gupta
 
Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019Arun Gupta
 
Machine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and KubernetesMachine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and KubernetesArun Gupta
 
Secure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using FirecrackerSecure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using FirecrackerArun Gupta
 
Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019Arun Gupta
 
Why Amazon Cares about Open Source
Why Amazon Cares about Open SourceWhy Amazon Cares about Open Source
Why Amazon Cares about Open SourceArun Gupta
 
Machine learning using Kubernetes
Machine learning using KubernetesMachine learning using Kubernetes
Machine learning using KubernetesArun Gupta
 
Building Cloud Native Applications
Building Cloud Native ApplicationsBuilding Cloud Native Applications
Building Cloud Native ApplicationsArun Gupta
 
Chaos Engineering with Kubernetes
Chaos Engineering with KubernetesChaos Engineering with Kubernetes
Chaos Engineering with KubernetesArun Gupta
 
How to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAMHow to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAMArun Gupta
 
Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018Arun Gupta
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteArun Gupta
 
Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018Arun Gupta
 
Mastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv SummitMastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv SummitArun Gupta
 
Top 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's LandscapeTop 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's LandscapeArun Gupta
 
Container Landscape in 2017
Container Landscape in 2017Container Landscape in 2017
Container Landscape in 2017Arun Gupta
 
Java EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShiftJava EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShiftArun Gupta
 
Docker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developersDocker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developersArun Gupta
 
Thanks Managers!
Thanks Managers!Thanks Managers!
Thanks Managers!Arun Gupta
 
Migrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to ContainersMigrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to ContainersArun Gupta
 

Plus de Arun Gupta (20)

5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf5 Skills To Force Multiply Technical Talents.pdf
5 Skills To Force Multiply Technical Talents.pdf
 
Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019Machine Learning using Kubernetes - AI Conclave 2019
Machine Learning using Kubernetes - AI Conclave 2019
 
Machine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and KubernetesMachine Learning using Kubeflow and Kubernetes
Machine Learning using Kubeflow and Kubernetes
 
Secure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using FirecrackerSecure and Fast microVM for Serverless Computing using Firecracker
Secure and Fast microVM for Serverless Computing using Firecracker
 
Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019Building Java in the Open - j.Day at OSCON 2019
Building Java in the Open - j.Day at OSCON 2019
 
Why Amazon Cares about Open Source
Why Amazon Cares about Open SourceWhy Amazon Cares about Open Source
Why Amazon Cares about Open Source
 
Machine learning using Kubernetes
Machine learning using KubernetesMachine learning using Kubernetes
Machine learning using Kubernetes
 
Building Cloud Native Applications
Building Cloud Native ApplicationsBuilding Cloud Native Applications
Building Cloud Native Applications
 
Chaos Engineering with Kubernetes
Chaos Engineering with KubernetesChaos Engineering with Kubernetes
Chaos Engineering with Kubernetes
 
How to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAMHow to be a mentor to bring more girls to STEAM
How to be a mentor to bring more girls to STEAM
 
Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018Java in a World of Containers - DockerCon 2018
Java in a World of Containers - DockerCon 2018
 
The Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 KeynoteThe Serverless Tidal Wave - SwampUP 2018 Keynote
The Serverless Tidal Wave - SwampUP 2018 Keynote
 
Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018Introduction to Amazon EKS - KubeCon 2018
Introduction to Amazon EKS - KubeCon 2018
 
Mastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv SummitMastering Kubernetes on AWS - Tel Aviv Summit
Mastering Kubernetes on AWS - Tel Aviv Summit
 
Top 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's LandscapeTop 10 Technology Trends Changing Developer's Landscape
Top 10 Technology Trends Changing Developer's Landscape
 
Container Landscape in 2017
Container Landscape in 2017Container Landscape in 2017
Container Landscape in 2017
 
Java EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShiftJava EE and NoSQL using JBoss EAP 7 and OpenShift
Java EE and NoSQL using JBoss EAP 7 and OpenShift
 
Docker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developersDocker, Kubernetes, and Mesos recipes for Java developers
Docker, Kubernetes, and Mesos recipes for Java developers
 
Thanks Managers!
Thanks Managers!Thanks Managers!
Thanks Managers!
 
Migrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to ContainersMigrate your traditional VM-based Clusters to Containers
Migrate your traditional VM-based Clusters to Containers
 

Dernier

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 

Dernier (20)

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 

Java EE 7 and HTML5: Developing for the Cloud

  • 1. Main sponsor Java  EE  7  and  HTML5:  Developing  for  the  Cloud   Arun  Gupta,  Java  EE  &  GlassFish  Guy   blogs.oracle.com/arungupta,  @arungupta  
  • 2. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle s products remains at the sole discretion of Oracle. 2 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 3. Java EE 6 Platform December 10, 2009 3 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 4. Java EE 6 – Key Statistics •  40+ Million Java EE 6 Component Downloads •  #1 Choice for Enterprise Developers •  #1 Application Development Platform •  Fastest implementation of a Java EE release 4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 5. Top Ten Features in Java EE 6 1.  EJB packaging in a WAR 2.  Servlet and CDI extension points 3.  Optional web.xml! 4.  Type-safe dependency injection 5.  CDI Events 6.  JSF standardizing on Facelets 7.  EJBContainer API 8.  @Schedule! 9.  EJB No Interface View 10. Web Profile 5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 6. Today’s Cloud Offerings are all Proprietary Infrastructure as Platform as Software as a Service a Service a Service 6 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 7. Java EE 7 7 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 8. Java EE 7 and 8 – Focus Areas Cloud Modularity HTML5 •  Provisioning •  Building on Jigsaw •  Emerging Web Standards require a •  Elastic & Autonomic •  Focus on OSGi interop programming model Scalability •  Supporting Profiles & •  JSON, WebSockets, •  Multi-Tenancy Modular Applications off-line, APIs & DOM 8 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 9. Java EE 7 Focus: Platform as a Service •  Next logical step for Java EE –  J2EE à Java EE 6 : The Java EE Platform provides services –  Java EE 7 : The Java EE Platform IS a service •  PaaS support entails evolutionary change •  Basic form of SaaS •  Provide way for customers and users to leverage public, private, and hybrid clouds 9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 10. Roles Developer PaaS Provider PaaS Customer/ JVM JVM JVM JVM JVM JVM JVM JVM JVM Tenant Machine Machine Machine PaaS Product Provider JVM JVM JVM JVM JVM JVM JVM JVM JVM Deployer Machine Machine Machine PaaS Account Tenant 1 Tenant 2 Tenant 3 Manager Application Submitter PaaS Administrator Application Administrator 10 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 11. Existing Java EE model Database 1 Provision and Initialize Service •  Configure Java EE resources – JDBC, JMS etc LDAP 2 Service •  Deploy Application EAR Provision and Initialize Messaging 3 Provision and Initialize Service Application 4 Provision and Initialize Container 5 Deploy Application (EAR/ GAR/SAR …) 11 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 12. Java EE 7 Model: Auto-Provision Services from Application Dependencies Cloud Administration •  Provision and deploy application 1 Provision and Initialize Service resources (e.g. LDAP stripe, data source instantiation and Database 2 Service connection …) Provision and Initialize •  Extensible Deployment Models LDAP Supporting Multiple Frameworks 3 Provision and Initialize Service •  Spring, Seam, Play … Messaging 4 Provision and Initialize Service Application 5 Deploy Application (EAR/ GAR/SAR …) Container 12 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 13. Services •  Cloud apps consume services –  Persistence, queueing, mail, caching, … •  Service metadata facilitates ease of use when deploying into the cloud @DataSourceDefinition(! name=“java:app/jdbc/myDB”,! className=“oracle.jdbc.pool.OracleDataSource”,! isolationLevel=TRANSACTION_REPEATABLE_READ,! initialPoolSize=5! ) ! 13 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 14. Services •  Cloud apps consume services –  Persistence, queueing, mail, caching, … •  Service metadata facilitates ease of use when deploying into the cloud @JMSConnectionFactoryDefinition(
 name=“java:app/myJMSConnectionFactory”, className=“javax.jms.QueueConnectionFactory”
 resourceAdapterName=“myJMSRA”) ! ! @JMSDestinationDefinition(
 name=“java:app/myQueue”,
 className=“javax.jms.Queue”
 destinationName=“myQueue1”)! 14 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 15. Services •  Cloud apps consume services –  Persistence, queueing, mail, caching, … •  Service metadata facilitates ease of use when deploying into the cloud @MailSessionDefinition(! name=“java:app/mailSession”,
 host=“example.com”
 from=“MyService@example.com”! ) ! 15 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 16. Services •  Cloud apps consume services –  Persistence, queueing, mail, caching, … •  Service metadata facilitates ease of use when deploying into the cloud @ConnectorResourceDefinition(! name=“java:app/myCustomConnector”,! className=“com.extraServices.CustomConnector.class”,! properties= {…}! ) ! 16 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 17. Elasticity Java EE 7 Focus: Move the Bar Right Elasticity Continuum Java EE Cluster Elastic Cluster Elastic Cluster Capacity Ca on Demand Single node Java EE Multi-Node Dynamic Self Adjusting Non-Elastic Multi-Instance Clustering SLA Driven Elasticity •  Service Levels •  Minimum and Maximum Instances •  Futures – Self Adjustment, Capacity On Demand 17 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 18. Demo PaaSing a Java EE Application in the Cloud glassfish.org/javaone2011 18 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 19. Conference Planning in the Cloud Java EE Application JSF JPA Deploy Services EJB Metadata <glassfish-services>
 <service-description init-type="LB" name="ConferencePlanner-lb">
 <template id="LBNative"/>
 <configurations>
 <configuration name="https-port" value="50443"/>
 <configuration name="ssl-enabled" value="false"/>
 <configuration name="http-port" value="50080"/>
 </configurations></service-description>
 <service-description init-type="JavaEE" name="ConferencePlanner">
 <characteristics>
 <characteristic name="service-type" value="JavaEE"/>
 </characteristics>
 <configurations>
 <configuration name="max.clustersize" value="4"/>
 <configuration name="min.clustersize" value="2"/>
 </configurations>
 </service-description>! . . .
 </glassfish-services>! 19 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 20. Service Provisioning Load Balancer Java EE Java EE ... Java EE Database 20 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 21. Multi-tenancy in Java EE 7 •  Support for separate isolated instances of the same app for different tenants –  One application instance per tenant –  Tenants correspond to units of isolation –  Multitenant apps are declared as such –  Each instance customized and deployed for a single tenant –  Limited form of SaaS •  Mapping to tenant done by the container •  Tenant id available to application –  E.g., under java:comp/tenantId! 21 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 22. Java EE 7 – Candidate JSRs Web JAX-RS JSF 2.2 Jcache 1.0 Container EL 3.0 (JSR 107) CDI Extensions 2.0 JSP 2.2 Extensions Bean Validation 1.1 Concurrency Servlet 3.1 Utilities 1.0 (JSR 236) State CDI 1.1 / Interceptors 1.1 / JSR 250 1.1 Management 1.0 (JSR 350) Batch Managed Beans 1.0 EJB 3.2 Processing 1.0 (JSR 352) JSON 1.0 JPA 2.1 JTA 1.1 JMS 2.0 (JSR 353) 22 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 23. Java EE 7 Early Draft •  Requires Java SE 7 •  Added new roles •  Resource definition metadata –  DataSourceDefinition, JMSConnectionFactoryDefinition, JMSDestinationDefinition, MailSessionDefinition, ConnectorResourceDefinition! –  Pre-provisioned or shared resource 23 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 24. Java EE 7 Early Draft •  Default Data Source java:comp/defaultDataSource! •  Default JMS Connection Factory java:comp/ defaultJMSConnectionFactory! •  Tenant Identifier: java:comp/tenantId! •  Made optional –  EJB Entity Beans, EJB QL, JAX-RPC, Deployment API, JAXR 24 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 25. Java Persistence API 2.1 •  @NamedStoredProcedureQuery, StoredProcedureQuery! •  Bulk update/delete using Criteria! •  User-defined functions using FUNCTION! •  Persistence Context Synchronization 25 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 26. JPA 2.1 Stored Procedures @Entity
 •  Stored Procedures @NamedStoredProcedureQuery(name="topGiftsStoredProcedure", procedureName="Top10Gifts")
 public class Product {
  . . .
 }! StoredProcedreQuery query = EntityManager.createNamedStoredProcedureQuery("topGiftsStoredProcedure");! query.registerStoredProcedureParameter(1, String.class, ParameterMode.INOUT);! query.setParameter(1, "top10");! query.registerStoredProcedureParameter(2, Integer.class, ParameterMode.IN);! query.setParameter(2, 100);! // there are other setParameter methods for defining the temporal type
 . . .! query.execute();! String response = query.getOutputParameterValue(1);! ! 26 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 27. JPA 2.1 Criteria Update/Delete CriteriaUpdate<Customer> q = cb.createCriteriaUpdate(Customer.class); 
 •  Update/Delete using Criteria Root<Customer> c = q.from(Customer.class); 
 q.set(c.get(Customer_.status), "outstanding")
  .where(cb.lt(c.get(Customer_.balance), 10000));
 . . .! @PersistenceContext EntityManager em;
 UPDATE Customer c! Query query = em.createQuery(q);
 SET c.status = 'outstanding'! query.executeUpdate();
 WHERE c.balance < 10000! 
 ! CriteriaDelete<Customer> q = cb.createCriteriaDelete(Customer.class); 
 Root<Customer> c = q.from(Customer.class); 
 q.where(cb.equal(c.get(Customer_.status), "inactive"),
         cb.isEmpty(c.get(Customer_.orders)));
 . . .! @PersistenceContext EntityManager em;
 DELETE FROM Customer c
 Query query = em.createQuery(q);
 WHERE c.status = 'inactive'
 query.executeUpdate();
 AND c.orders IS EMPTY! 
 27 !Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 28. JAX-RS 2.0 Client-side API •  Client-side API URL url = new URL("http://.../atm/balance");
 HttpURLConnection conn = (HttpURLConnection) url.openConnection();
 conn.setRequestMethod("GET");
 conn.setDoInput(true);
 conn.setDoOutput(false);
             
 BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
 String line;
 while ((line = br.readLine()) != null) {
     out.println(line);
 }! Client client = ClientFactory.newClient();! String balance = client.target("http://.../atm/balance")! .request("text/plain")! .get(String.class);! 28 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 29. JAX-RS 2.0 Filters and Interceptors @Provider
 class LoggingFilter implements RequestFilter, ResponseFilter {!     @Override
     public FilterAction preFilter(FilterContext ctx) throws IOException {
         logRequest(ctx.getRequest());
         return FilterAction.NEXT;
     }
 !     @Override
     public FilterAction postFilter(FilterContext ctx) throws IOException {
         logResponse(ctx.getResponse());
         return FilterAction.NEXT;
     }
 }! 29 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 30. JAX-RS 2.0 Client-side Async •  Client-side Async Client client = ClientFactory.newClient();
 Future<String> future = client.target("http://.../atm/{card}/balance")
                               .pathParam("card", "1111222233334444")
                               .queryParam("pin", "1234")
                               .request("text/plain")
                               .async()
                               .get(
 new InvocationCallback<String>() {
 public void completed(String result) {
 }
 
 public void failed(InvocationException e) {
 }
 }
 );! 30 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 31. JAX-RS 2.0 Bean Validation Integration •  Integration with Bean Validation @Path("/")
 class ProductResource {!     @POST
     @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
     public void addProduct(@NotNull 
 @FormParam("productName") String name,
                            @NotNull 
 @Category 
 @FormParam("category") String category) {
         . . .
     }
 }! 31 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 32. JAX-RS 2.0 Server-side content negotiation @Path("/")
 •  Server-side Content Negotiation class ProductResource {!     @GET
     @Produces({ "text/xml;qs=0.75", "application/json"})
     public Product[] getProducts() {
         . . .
     }
 }! 32 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 33. JavaServer Faces 2.2 •  Integration with HTML5 forms •  Queue control for Ajax requests •  File Upload component (Non-Ajax & Ajax) •  Injection in all JSF artifacts – including converters & validators •  @FaceletsResourceResolver! •  Instantiating composite components in Java •  . . . 33 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 34. Contexts & Dependency Injection 1.1 •  Embedded mode to startup outside Java EE container •  Global ordering of interceptors and decorators •  API for managing built-in contexts •  Send Servlet events as CDI events •  . . . 34 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 35. Bean Validation 1.1 •  Code Sample @MethodValidated
 public class OrderService { 
 public OrderService(@NotNull CreditCardProcessor creditCardProcessor) { . . . }
 
 public void placeOrder(
 @NotNull 
 @Size(min=3, max=20) String customerCode, 
 @NotNull @Valid Item item, 
 @Min(1) int quantity) { . . . }
 
 @NotNull @Size(min=1)
 public Set<CreditCardProcessor> getCreditCardProcessors() { ... }
 
 @NotNull @Future
 public Date getNextAvailableDeliveryDate() { ... } ! } ! 35 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 36. Java Message Service 2.0 •  Simplified API –  Less verbose –  Reduce the number of objects needed to send/receive message –  Allow resource injection –  Alternative, not replacement, for standard API –  Remove JMSException, where possible •  Connection, Session and other objects are AutoCloseable •  New methods – no need for redundant arguments 36 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 37. JMS 1.1 – Sending a Message (Java EE) Standard API @Resource(lookup = "jms/connectionFactory ")
 ConnectionFactory connectionFactory; 
 
 @Resource(lookup="jms/inboundQueue") 
 Queue inboundQueue; 
 
 public void sendMessageOld (String payload) throws JMSException { 
 try (Connection connection = connectionFactory.createConnection()) { 
 Session session = connection.createSession(); 
 MessageProducer messageProducer = session.createProducer(inboundQueue); 
 TextMessage textMessage = session.createTextMessage(payload);
 messageProducer.send(textMessage); 
 } ! } ! 37 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 38. JMS 2.0 – Sending a Message (Java EE) New Simplified API @Resource(mappedName="jms/contextFactory") ! ConnectionFactory connectionFactory;! ! @Resource(mappedName="jms/inboundQueue") ! Queue inboundQueue;! ! public void sendMessage(String payload) {! try (JMSContext context = connectionFactory.createContext();){! context.send(inboundQueue,payload);! }! }! 38 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 39. JMS 2.0 – Sending a Message (Java EE) New Simplified API (with Injection) @Inject! @JMSConnectionFactory("jms/contextFactory") ! JMSContext context;! ! @Resource(mappedName="jms/inboundQueue") ! Queue inboundQueue;! ! public void sendMessage(String payload) {! context.send(inboundQueue,payload);! }! 39 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 40. JSON 1.0 (JSR 353) javax.json.* •  Object model API to represent JSON –  Similar to DOM API in XML world •  Streaming API to produce/consume JSON –  Similar to StAX API in XML world JSR Supporters –  fasterxml.com (Jackson) –  Doug Crockford (json.org) •  Spec: json-processing-spec.java.net •  Reference Implementation: jsonp.java.net 40 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 41. JSON 1.0 (JSR 353) •  DOM-based APIs (javax.json.* package) –  JSONBuilder – Builds a JSON object –  JSONReader – Reads a JSON object or array from the stream –  JSONWriter – Writes a JSON object or array to the stream •  Streaming APIs (javax.json.stream.* package) –  JsonGenerator – Streaming JSON generator –  JsonParser – Allows forward, read-only access to JSON 41 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 42. JSON 1.0 (JSR 353) Code Sample - JsonBuilder JsonObject value = new JsonBuilder()
 {   .beginObject()
          "firstName":  "John",     .add("firstName", "John") 
          "lastName":  "Smith",     .add("lastName", "Smith") 
          "age":  25,   add("age", 25)
          "address"  :  {   .beginObject("address”)
 .add("streetAddress", "21 2nd Street”)
                  "streetAddress",  "21  2nd  Street",   .add("city", "New York”)
                  "city",  "New  York",   .add("state", "NY”)
                  "state",  "NY",   .add("postalCode”, "10021”)
                  "postalCode",  "10021"   .endObject()
            },   .beginArray("phoneNumber")
 .beginObject() 
            "phoneNumber":  [   .add("type", "home") 
                    {  "type":  "home",     .add("number", "212 555-1234") 
                        "number":  "212  555-­‐1234"  },   .endObject() 
                    {  "type":  "fax",     .beginObject() 
                        "number":  "646  555-­‐4567"  }   .add("type", "home") 
 .add("number", "646 555-4567") 
            ]   .endObject() 
  }   .endArray() 
 .endObject() 
 .build(); ! 42 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 43. JSON 1.0 (JSR 353) Code Sample – JsonReader, JsonWriter String json = "...";
 JsonReader reader = new JsonReader(new StringReader(json));
 JsonValue value = reader.readObject();
 reader.close(); ! JsonWriter jsonWriter = new JsonWriter(new FileWriter(...));
 JsonObject jsonObject = new JsonBuilder()
 .beginObject()
 . . .
 .endObject()
 .build();! jsonWriter.writeObject(jsonObject);
 jsonWriter.close(); ! 43 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 44. JSON 1.0 (JSR 353) Code Sample – JsonGenerator, JsonParser JsonGenerator generator = new JsonGenerator(new FileWriter(...));
 generator
 .beginObject()
 . . .
 .beginArray()
 . . .
 .endArray()
 .endObject()
 .build();
 START_OBJECT! generator.close(); ! END_OBJECT! START_ARRAY! END_ARRAY! String json = "..."; 
 KEY_NAME! JsonParser parser = new JsonParser(new StringReader(json));
 VALUE_xxx! Iterator<Event> it = reader.iterator();
 Event event = it.next(); ! 44 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 45. Transparency •  Oracle’s Java EE 7 JSRs are run in the open on java.net –  http://javaee-spec.java.net –  One project per spec – e.g., jpa-spec, jax-rs-spec, jms-spec… •  Publicly viewable Expert Group mail archive –  Users observer list gets copies of all Expert Group emails •  Publicly viewable download area •  Publicly viewable issue tracker •  Commitment to update to JCP 2.8 Process 45 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 46. Status and Schedule •  All JSRs up and running •  Early Drafts –  Java EE 7 Platform, JSF 2.2, JAX-RS 2.0, JPA 2.1, CDI 1.1, EJB 3.2, JMS 2.0, Bean Validation 1.1, Expression Language 3.0 •  Final release target: Q2 2013 46 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 47. HTML 5 is Disruptive •  HTML 5 is the new UI across devices –  Offline, Real-time Communication, File access, Semantic markup, Multimedia, CSS3 •  HTML 5 Requires New Programming Model •  Servers no longer generating markup language •  Event Driven •  JavaScript is part of the domain model •  JSON is the payload, not just HTML 47 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 48. Java EE: Investments for HTML5 •  WebSocket and Server Sent Events Infrastructure •  WebSocket SDK and JSR-356 –  Simplify the programming model for Java EE 48 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 49. WebSocket •  Part of HTML5 Specification •  Bi-directional •  Full-duplex •  Over a single TCP connection •  Examples –  Real-time online games –  Collaborative platforms –  Social Networking 49 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 50. WebSocket Protocol – Handshake tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17 GET /mychat HTTP/1.1! Host: server.example.com! Request Upgrade: websocket! Connection: Upgrade! Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==! Sec-WebSocket-Protocol: chat, superchat! Sec-WebSocket-Version: 13! Origin: http://example.com
 <EMPTY LINE>! ! HTTP/1.1 101 Switching Protocols! Upgrade: websocket! Response Connection: Upgrade! Sec-WebSocket-Accept: HSmrc0sMlYUkAGmm5OPpG2HaGWk=! Sec-WebSocket-Protocol: chat
 <EMPTY LINE>! 50 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 51. WebSocket Protocol – Framing tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17 •  Wire format of messages •  Design Philosophy – Minimum framing required •  Data Frames –  Text & Binary •  Blob, ArrayBuffer •  Control Frames –  Protocol-level signaling 51 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 52. WebSocket API dev.w3.org/html5/websockets/ 52 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 53. WebSocket SDK websocket-sdk.java.net •  Annotation Driven Model –  Allows you to turn POJOs into WebSocket Endpoints –  Support for Server Sent Events –  WebLogic 12.1.2 support –  Runs on GlassFish 4.0 Early Builds Now! •  WebSocket SDK and JSR-356 –  Simplify the programming model for Java EE –  Integrated with Java EE Platform e.g. CDI 53 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 54. WebSocket Example import org.glassfish.websocket.api.annotations.WebSocketClose;
 import org.glassfish.websocket.api.annotations.WebSocket;
 import org.glassfish.websocket.api.annotations.WebSocketMessage;   ! ! @WebSocket(path=”/HelloWorld")
 public class HelloWorld{
     
     @WebSocketMessage
     public String sayHelloWorld(String caller) {
         return "hello " + caller + "!";
     }
 ! @WebSocketClose
 public void goodbye() {
 System.out.println(“Adios”);
 }
 }! https://blogs.oracle.com/arungupta/entry/websockets_and_java_ee_7 54 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 55. Server-Sent Events •  Part of HTML5 Specification •  Server-push notifications •  Cross-browser JavaScript API: EventSource! •  Message callbacks •  MIME type: text/eventstream! 55 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 56. EventSource API dev.w3.org/html5/eventsource/ 56 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 57. Server-Sent Events Example Client-side var url = 'http://' + document.location.host + '/glassfish-sse/simple’;
 eventSource = new EventSource(url);! eventSource.onmessage = function (event) {
 var theParagraph = document.createElement('p');
 theParagraph.innerHTML = event.data.toString();
 document.body.appendChild(theParagraph);
 }! https://blogs.oracle.com/arungupta/entry/server_sent_events_using_glassfish 57 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 58. Server-Sent Events Example Server-side Handler @ServerSentEvent("/simple”)
 public class MySimpleHandler extends ServerSentEventHandler {! 
 public void sendMessage(String data) {
 try {
 connection.sendMessage(data);
 } catch (IOException ex) {
 . . .
 }
 }
 }! https://blogs.oracle.com/arungupta/entry/server_sent_events_using_glassfish 58 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 59. Server-Sent Events Example Server-side Business Logic @Stateless! public class SimpleEvent {! ! @Inject @ServerSentEventContext("/simple")! ServerSentEventHandlerContext<MySimpleHandler> simpleHandlers;! ! @Schedule(hour="*", minute="*", second="*/10")! public void sendDate() {! for(MySimpleHandler handler : simpleHandlers.getHandlers()) {! handler.sendMessage(new Date().toString());! }! }! }! https://blogs.oracle.com/arungupta/entry/server_sent_events_using_glassfish 59 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 60. SSE & WebSocket – competing technologies ? •  WebSocket can send/receive, SSE is server-push •  SSE are over HTTP, WebSocket require servers to understand the protocol •  SSE provides simple and easy-to-use for server-push, WebSocket is slightly complex and has overhead •  WebSocket provide real-time updates, SSE can be configured 60 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 61. Project Avatar Complete Solution for Dynamic Rich Clients HTML 5 browser HTML & Java JSON over hybrid application WebSocket Java application Java EE Cloud 61 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 62. JPA-RS: Building Block of Project Avatar •  Exposes JPA mapped entities over REST via JAX-RS •  HTTP Methods –  GET, PUT, POST, DELETE! •  Content-Type and Accept-based content negotiation –  XML or JSON •  Client –  HTML5 with JavaScript (primary focus) –  JavaFX 62 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 63. JPA-RS: Current Programming Model GET http://…/order/4 JAX-RS Customer Product Order Shop Persistence Unit JPA 63 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 64. JPA-RS: Thin Server Architecture GET http://…/<pu-name>/<entity>/4 JPA-RS Shop PU … PU JPA 64 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 65. JPA-RS: Building Block of Project Avatar Server-side Business Logic •  Persistence Unit Operations –  /<root-uri>/<pu-name>/entity! –  /<root-uri>/<pu-name>/query! –  /<root-uri>/<pu-name>/metadata! •  Supports invocation of @NamedQueries via HTTP •  Server-caching – EclipseLink clustered cache •  Dynamic Persistence also supported –  Entities defined via metadata – no Java classes required –  Enables persistence for HTML5/JavaScript apps 65 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 66. NoSQL Stores •  No standards •  Differing APIs and feature sets •  Some offer query language/API – some not 66 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 67. EclipseLink NoSQL •  Support JPA access to NoSQL databases •  Define annotations and XML to identify NoSQL stored entities (e.g., @NoSQL) •  Support JPQL subset for each –  Key principal: leverage what’s available •  Initial support for MongoDB and Oracle NoSQL. •  Support mixing relational and non-relational data in single composite persistence unit 67 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 68. GlassFish Roadmap GlassFish v3 GlassFish Server 3.1 GlassFish Server 3.1.2 •  Java EE 6 support •  Centralized administration •  Bug Fixes •  Single instance •  Clustering / HA •  Incremental features •  GlassFish Enterprise Mgr •  GlassFish Server Control 2009 2010 2011 2012 2013 GlassFish Server 3.0.1 GlassFish Server 3.1.1 GlassFish Server 4 •  Oracle branding •  Bug fixes •  Java EE 7 •  Oracle platform support •  Updated components •  Multitenancy •  Oracle interoperability •  Incremental features •  PaaS-enablement 68 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 69. Call to Action •  Java EE 7 Expert Group Project – http://javaee-spec.java.net •  Java EE 7 Reference Implementation – http://glassfish.org •  The Aquarium –  http://blogs.oracle.com/theaquarium 69 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
  • 70. 70 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.