1 / 16

Java EE 7

Java EE 7. The new features of the upcoming Enterprise Edition. Hello , I‘m Marcus. Diploma in Computer Science 2002 University of Tuebingen Freelancing Software Architect specialized in Java EE

jaser
Télécharger la présentation

Java EE 7

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java EE 7 The newfeaturesoftheupcoming Enterprise Edition

  2. Hello, I‘m Marcus • Diploma in Computer Science 2002University of Tuebingen • Freelancing Software Architectspecialized in Java EE • worked for serveral large companiesin Germany like Daimler (Mercedes), Commerzbank and Deutsche Bahn

  3. Our Agenda • Overview of the new features • Example application • Dig into the code

  4. Damnit, weneed a newmaintheme! • Originally: PaaS (Cloud and multi-tenancy) • No Cloud • No Multi-tenancy • But Productivity and HTML5 • Due date: Q2 2013

  5. JSF 2.2 • rendersHTML5 • <h:inputTextvalue="#{bean.value}" ><f:passThroughAttributename="placeholder" value="Entertext" /></h:inputText> • CDI ViewScope / ManagedBeansdeprecated • Faces Flow Howtousethenewfeatures: http://www.marcusschiesser.de/2013/01/how-to-use-jsf-2-2-with-jboss-7-1

  6. CDI 1.1, EJB 3.2 & JPA 2.1 • @Transactional-Annotation • But: Still noannotationsfor EJB Security • CDI: Priorityorderingof Interceptors andDecorators • JPA: StoredProceduresand DB-Functions in JPQL

  7. Methodlevelvalidation • Part of Bean Validation 1.1 @NotNullpublic MyObjectcreateMyObject(@Size(min=5, max=40) String name, @DecimalMin(value="1.00") Double value, @Pattern(regexp="\\d{8}") String code) {...

  8. JMS 2.0 @Inject@JMSConnectionFactory("jms/connectionFactory")private JMSContext context; @Resource(mappedName = "jms/inboundQueue")private Queue inboundQueue; public void sendMessage(String payload) {context.send(inboundQueue, payload);}

  9. Somenew APIs • Java API for JSON Processing (JSR 353) • Batch Applications (JSR 352)

  10. Things we‘llcover • Java API for WebSockets (JSR 356) • Bidirectional communication • Directly over TCP • No HTTP, only for Handshake via HTTP Upgrade • JAX-RS 2.0 • finally a REST-Client

  11. Sample app „MyAktion“ Our sample application allows organizers of nonprofit campaigns to create online fundraising forms for their projects. The organizer can embed these forms into their own website. This allows the organizer to raise money for his campaign. Each organizer can create forms for multiple campaigns.The application takes care of the generation of the forms and the management of the campaigns and donations.

  12. Domain classes

  13. Let‘ssee...

  14. But now some JEE 7 please…

  15. Communication diagram

  16. Questions? Pleaseaskanddon‘thesitatetocontactme • Name: Marcus Schiesser • Blog: www.marcusschiesser.de • Email: mail@marcusschiesser.de • Code: www.bitbucket.org/mschiesser/my-aktion

More Related