X

Java EE 7 Samples Galore

Guest Author


The href="http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-7-jdk-7u21-downloads-1956231.html">Java
EE 7 SDK provides a comprehensive set of samples for different
technologies - both new and updated. They are very nicely
documented, runs using Maven + using Cargo, and demonstrate a good
usage of the different APIs.



The question I get typically asked is "how do you learn all these
APIs and technologies ?".



The SDK samples, reading specifications, and whitboarding with
specification leads is indeed a big source of my learning. But I
need to write my own code, simple "hello world" style samples that
demonstrates point usage of different APIs. I truly believe in "let
the code talk" and have given several slide-free code-driven session
on Java EE 7 around the world. The source for these talks is about
100+ samples I've written over the past few months.



All of these samples are now available at: href="https://github.com/arun-gupta/javaee7-samples">github.com/arun-gupta/javaee7-samples



They are all Maven-based projects and have no documentation at all.
However they are logically arranged by technologies and I've tried
to give intuitive names to the directories. I don't intend to write
any documentation so please don't ask for it ;-) But at least now
you've access to all the samples.



Here is the complete list of samples at this time:



javaee7-samples

  + batch-samples

    + batchlet-simple

    + chunk-checkpoint

    + chunk-exception

    + chunk-mapper

    + chunk-optional-processor

    + chunk-partition

    + chunk-simple

    + decision

    + flow

    + batch-listeners

    + multiple-steps

    + split

    + chunk-simple-nobeans

  + concurrency-samples

    + dynamicproxy

    + executor

    + schedule

    + threads

  + ejb-samples

    + embeddable

    + timer

    + lifecycle

    + el-samples

    + standalone

  + javamail-samples

    + definition

  + jaxrs-samples

    + async-client

    + async-server

    + beanvalidation

    + jaxrs-client

    + dynamicfilter

    + endpoint

    + filter

    + filter-interceptor

    + interceptor

    + invocation

    + invocation-async

    + link

    + readerwriter

    + readerwriter-json

    + server-sent-event

    + jsonp

    + moxy

  + jms-samples

    + send-receive-simple

    + send-receive

    + temp-destination

    + jmscontext-cdi

  + jpa-samples

    + criteria

    + entitygraph

    + jpa-listeners

    + multiple-pu

    + schema-gen

    + storedprocedure

    + jndi-context

    + locking-optimistic

    + schema-gen-scripts

  + jta-samples

    + transactional

    + transaction-scope

    + user-transaction

    + tx-exception

  + jsf-samples

    + contracts

    + contracts-library

    + flows-simple

    + flows-mixed

    + flows-programmatic

    + flows-declarative

    + passthrough

    + radio-buttons

    + viewscoped

    + file-upload

    + components

    + bean-validation

  + json-samples

    + object-builder

    + object-reader

    + streaming-generate

    + streaming-parser

  + servlet-samples

    + nonblocking

    + protocol-handler

    + servlet-security

    + metadata-complete

    + validation

    + methods

  + websocket-samples

    + binary

    + chat

    + encoder

    + encoder-client

    + encoder-programmatic

    + endpoint

    + endpoint-async

    + endpoint-javatypes

    + endpoint-programmatic

    + endpoint-programmatic-async

    + endpoint-programmatic-injection

    + endpoint-security

    + httpsession

    + injection

    + javase-client

    + messagesize

    + parameters

    + properties

    + websocket-vs-rest

    + subprotocol

    + websocket-client

    + websocket-client-config

    + websocket-client-programmatic

    + websocket-client-programmatic-config

    + websocket-client-programmatic-encoders

    + whiteboard




Will continue to add more as I dig into other pieces. I gave a
3-hour presentation explaining some of these samples at UberConf and
captured the screen during the session. Those two-part videos are
available.



The first part covers:
  • WebSocket 1.0
  • Batch 1.0
  • JSON Processing 1.0
  • Java Persistence API 2.1








The second part covers:
  • JavaServer Faces 2.2
  • Java API for RESTful Web Services 2.0
  • Java Message Service 2.0
  • Java Transaction API 1.2
  • Bean Vaildation 1.1
  • Concurrency Utilities for Java EE 1.0








Enjoy!


Join the discussion

Comments ( 12 )
  • Johnny Nilsson Friday, July 19, 2013

    Great job! I will definately take some time and go througg yout samples. I think you are right on the money with letting the code speak for itself and skip the documentation.


  • Glen Smith Friday, July 19, 2013

    Amazing work, Arun! Thanks so much for sharing. Cloning right now!

    Will you also be putting together a new EE7 Pocket Guide for O'Reilly? I reference that book all the time!

    Glen.


  • Arun Gupta Friday, July 19, 2013

    Glen,

    Thanks! Looking forward to your review at:

    http://www.amazon.com/Java-EE-6-Pocket-Guide/dp/144933668X/

    "Java EE 7 Essentials" coming next month:

    http://shop.oreilly.com/product/0636920030614.do


  • ABHISHEK PANDEY Friday, July 19, 2013

    Awesome, Great work.


  • guest Friday, July 19, 2013

    First of all, great work. Thanks for your samples. I was looking for such kind of samples.

    A small question. Will this samples works on eclipse please?


  • Arun Gupta Friday, July 19, 2013

    The projects are all Maven-based and so should work in Eclipse. Please try them and let us know.


  • Binh Thanh Binh Saturday, July 20, 2013

    Thanks, nice examples, I'm waiting for "Java EE 7 Essentials"


  • guest Sunday, July 21, 2013

    Thanks for the incredible work so far..

    I sincerely hope your forth coming book Java EE 7 Essentials is going to have most and more of these..

    Thanks.


  • Vignesh Arjunan Thursday, July 25, 2013

    Hi Arun,

    Great work. I have learnt a lot from your videos and blogs.

    I am trying to find a working sample of EL 3.0. I can't find it in the samples shared. There is just a test which is incomplete. Please help me.


  • Arun Gupta Thursday, July 25, 2013

    Vignesh,

    I've added EL 3.0 sample to my TODO list, will work on it and share.


  • SV Wednesday, September 18, 2013

    Hi Arun,

    Here is screencast "How to start using javaee7 samples in IntelliJ-13".

    http://www.screenr.com/FYlH .

    Nice samples )))


  • Arun Gupta Wednesday, September 18, 2013

    SV,

    Thanks for sharing, would love to share with the broader community. Do you have a twitter handle ?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.