JEE6Samples

Java EE 6 samples

This page summarizes Java EE 6 samples that are available on the web

Contents


Name Description Notes
JEE Tutorial samples Samples created by the GlassFish documentation team
dukes-tutoring Web module: servlet 2.5, JSF 1.2 + Facelets, JPA 1.0, REST, EJB 3.1 including embeddable container
dukesbank EE 5 only, no EE 6 features
ejb/cart* EJB + AppClient project only, seems to be EE 5
ejb/confirmer EJB + AppClient project only, seems to be EE 5
ejb/converter Web module: servlet 2.5, EJB 3.1 injected in servlet
ejb/converter-secure EAR with Web, EJB, AppClient, EE 5
ejb/counter Web module: Servlet 2.5, EJB 3.1, JSF 2
ejb/helloservice EJB 3.1 exposed as a JAX-WS service
ejb/simplemessage EJB (MDB) + AppClient, EE 5
ejb/timersession Web module: servlet 2.5, JSF 2.0, EJB 3.1 (timer bean)
jaxrs/HelloWorld* Simple REST service as JSON Does not work
jaxrs/JAXRSHelloWorld Simple REST service as text
jaxws/* JAXWS - is there anything EE 6 specific?
jms/* Message driven beans; not that interesting for EE 6
persistence/order JPA 1.0, JSF 2.0, EJB 3.1 Uses the GF sun-appserv-samples database, which we don't register in the IDE. Populates the database on startup, so no setup should be necessary, but this fails.
persistence/roster AppClient + EJB, JPA in EJB
javaee-patterns samples Samples created by Adam Bien with NetBeans to accompany his book
AnnotationLessEJB31 EJB 3.1 in web module declared in ejb-jar.xml (not annotations)
BeanLocator Library locate EJBs through JNDI somehow
BeanLocatorTest Usage of BeanLocator in a web module
DAOPattern Generic/generified JPA controller over DAO. Also has DTO, but that's not used.
DependencyInjection EJB 3.1 in a web module, local interface, injection of EJBs to client through @EJB.
EJBRestHybrid EJB 3.1 and REST at the same time.
EmbeddableEJBTest EJB in Java SE project (through embeddable contriner).
Interceptors javax.interceptor - what is it? In EJB module.
LeanestInterceptor More javax.interceptor. In Web module with EJB 3.1
LeanJSF2EJB31Component EJB 3.1 with JPA 2.0 with JSF 2.0 - end to end. http://wiki.netbeans.org/DocsSimpleJSF2EJB31 - Steps for creating this application in NetBeans
LeanServiceECBComponent JSF 2, EJB 3.1, JPA 2.0, Web Beans, REST
NoInterfaceViewEJBUnitTest EJB 3.1
ServiceFacadePattern EAR with EJB and WAR.
GlassFish samples Samples by the GlassFish team, subdirectory ws/javaee6 under CVS checkout
ejb/ejb31-war EJB 3.1 in web module, hello world kind
jpa/locking Example of optimistic and pessimistic locking in JPA
rest/message-board-war Interesting REST application with JavaScript client
security/http-method-omission security example, servlet
security/programmatic-login security through Java APIs
security/web-security-annotation security annotations on a servlet
web/jsf/basic-ajax simple JSF AJAX examples
web/jsf/basic-ezcomp simple JSF composite components
web/servlet/annotation-war Annotated servlet 3.0 components hello world app
web/servlet/async-request-war Nice end to end Comet chat application Does not work for me using 2 browser tabs, see bug 19
web/servlet/dynamic-registration-war Programmatic registration of filter and servlet in a servlet context listener
webbeans/webbeans-guess Number guess application with JSF and Web Beans
webservices/hello-jaxws2.2
webservices/hello-singleton-ejb
Other Various other samples
ScrumToys JSF 2+JPA sample, SCRUM project management tool End to end application. This sample is included in the IDE as a Maven sample project
PetCatalog (Carol McDonald) JSF 2.0, JPA 1.0, EJB 3.1 Very nice end to end database application. Setup necessary (populating the database with schema and data)
FirstCup - Duke's age JAX-RS
FirstCup JPA 2.0, JSF 2.0, EJB 3.1


Proposed sample structure in NetBeans

Category Sample Status
Java Web
JSTL Examples (J2EE 1.4) DONE: updated to GFV3
JSP Examples (J2EE 1.4) DONE: updated to GFV3
Servlet Examples (J2EE 1.4) DONE: updated to GFV3
Web JPA (Java EE 5) DONE: updated to GFV3
JSF JPA (Java EE 5) DONE: updated to GFV3
Servlet Stateless (Java EE 6) DONE: moved from Java EE category
async-request-war (new, needs to be fixed) DONE: Java EE 6, GFV3 - not working JavaScript client
Pet Catalogue (new) DONE: Java EE 6, GFV3
ScrumToys (new) DONE: Java EE 6, GFV3 - not working
jpa locking
_Web Services_
Calculator (Java EE 6) DONE: updated to EE 6, GFV3
Secure Calculator (Java EE 6) updated to EE 6, GFV3, , needs to be fixed
Stock Service (Java EE 5) DONE: updated to GFV3
Stock Client (Java EE 5) DONE: updated to GFV3
Hello World RESTful (Java EE 6) DONE: updated to Java EE 6, GFV3
Customer Database RESTful (Java EE 5) DONE: updated to GFV3
Customer Database on Spring RESTful (Java EE 5) updated to GFV3, needs to be fixed
Message Board RESTful (new) DONE: Java EE 6, GFV3
Java EE
Annotation Override Interceptor (Java EE 5) DONE: updated to GFV3
Lottery Annotation (Java EE 5) DONE: updated to GFV3
LeanServiceECBComponent (new) STARTED


Removed samples

  • Java Web
  • JSF JPA CRUD
  • Java EE
  • Interceptor Stateless
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo