Java EE 7 Samples Galore


The 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: 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!

Comments:

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.

Posted by Johnny Nilsson on July 18, 2013 at 11:18 PM PDT #

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.

Posted by Glen Smith on July 19, 2013 at 01:45 AM PDT #

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

Posted by Arun Gupta on July 19, 2013 at 03:16 AM PDT #

Awesome, Great work.

Posted by ABHISHEK PANDEY on July 19, 2013 at 03:26 AM PDT #

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?

Posted by guest on July 19, 2013 at 04:49 AM PDT #

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

Posted by Arun Gupta on July 19, 2013 at 05:57 AM PDT #

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

Posted by Binh Thanh Binh on July 20, 2013 at 04:38 PM PDT #

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.

Posted by guest on July 21, 2013 at 04:03 AM PDT #

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.

Posted by Vignesh Arjunan on July 25, 2013 at 07:00 AM PDT #

Vignesh,

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

Posted by Arun Gupta on July 25, 2013 at 07:30 AM PDT #

Hi Arun,
Here is screencast "How to start using javaee7 samples in IntelliJ-13".
http://www.screenr.com/FYlH .

Nice samples )))

Posted by SV on September 18, 2013 at 01:41 AM PDT #

SV,

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

Posted by Arun Gupta on September 18, 2013 at 10:45 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today