├── src └── main │ └── jbake │ ├── templates │ ├── menu.ftl │ ├── page.ftl │ ├── footer.ftl │ └── header.ftl │ ├── assets │ ├── img │ │ ├── oracle.gif │ │ └── firstcup-architecture.gif │ ├── assets │ │ ├── css │ │ │ ├── print.scss │ │ │ └── style.scss │ │ └── images │ │ │ ├── logo.png │ │ │ ├── Oracle-logo.png │ │ │ └── header-bkg.jpg │ ├── _config.yml │ ├── CONTRIBUTING.md │ ├── README.md │ ├── pr_doc_workflow.md │ ├── _layouts │ │ └── default.html │ ├── css │ │ └── style.css │ └── LICENSE.md │ ├── jbake.properties │ └── content │ ├── intro.adoc │ ├── next-steps.adoc │ ├── creating-example.adoc │ ├── next-steps001.adoc │ ├── java-ee.adoc │ ├── intro001.adoc │ ├── next-steps002.adoc │ ├── web-application001.adoc │ ├── web-application.adoc │ ├── web-application002.adoc │ ├── web-application006.adoc │ ├── java-ee002.adoc │ ├── web-application003.adoc │ ├── preface.adoc │ ├── intro002.adoc │ ├── title.adoc │ ├── creating-example001.adoc │ ├── web-application004.adoc │ ├── java-ee001.adoc │ ├── toc.adoc │ ├── creating-example002.adoc │ └── web-application005.adoc ├── CONTRIBUTING.md ├── firstcup.xml ├── pr_doc_workflow.md ├── README.md ├── release.sh ├── pom.xml └── LICENSE.md /src/main/jbake/templates/menu.ftl: -------------------------------------------------------------------------------- 1 | <#-- a menu bar template fragment included in the page template --> -------------------------------------------------------------------------------- /src/main/jbake/assets/img/oracle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/firstcup/HEAD/src/main/jbake/assets/img/oracle.gif -------------------------------------------------------------------------------- /src/main/jbake/assets/assets/css/print.scss: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | 4 | @import "{{ site.theme }}"; 5 | h1 { 6 | font-size: 1.8em; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /src/main/jbake/assets/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/firstcup/HEAD/src/main/jbake/assets/assets/images/logo.png -------------------------------------------------------------------------------- /src/main/jbake/assets/assets/images/Oracle-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/firstcup/HEAD/src/main/jbake/assets/assets/images/Oracle-logo.png -------------------------------------------------------------------------------- /src/main/jbake/assets/assets/images/header-bkg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/firstcup/HEAD/src/main/jbake/assets/assets/images/header-bkg.jpg -------------------------------------------------------------------------------- /src/main/jbake/assets/img/firstcup-architecture.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/firstcup/HEAD/src/main/jbake/assets/img/firstcup-architecture.gif -------------------------------------------------------------------------------- /src/main/jbake/templates/page.ftl: -------------------------------------------------------------------------------- 1 | <#-- a top level page layout template --> 2 | 3 | <#include "header.ftl"> 4 | <#include "menu.ftl"> 5 | 6 | ${content.body} 7 | 8 | <#include "footer.ftl"> -------------------------------------------------------------------------------- /src/main/jbake/jbake.properties: -------------------------------------------------------------------------------- 1 | site.host=http://jbake.org 2 | render.tags=false 3 | render.sitemap=false 4 | render.archive=false 5 | render.feed=false 6 | asciidoctor.option.safe=0 7 | asciidoctor.attributes.export=true -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | #### :warning:This project is now part of the EE4J initiative. This repository has been archived as all activities are now happening in the [corresponding Eclipse repository](https://github.com/eclipse-ee4j/glassfish-firstcup). See [here](https://www.eclipse.org/ee4j/status.php) for the overall EE4J transition status. 2 | 3 | --- 4 | -------------------------------------------------------------------------------- /src/main/jbake/content/intro.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Introduction 4 | next=intro001.html 5 | prev=preface.html 6 | ~~~~~~ 7 | = Introduction 8 | 9 | 10 | [[GCQYB]] 11 | 12 | [[introduction]] 13 | 1 Introduction 14 | -------------- 15 | 16 | This chapter outlines the goals and the prerequisites for completing 17 | this tutorial. 18 | -------------------------------------------------------------------------------- /src/main/jbake/content/next-steps.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Next Steps 4 | next=next-steps001.html 5 | prev=web-application006.html 6 | ~~~~~~ 7 | = Next Steps 8 | 9 | 10 | [[GCRLL]][[next-steps]] 11 | 12 | 5 Next Steps 13 | ------------ 14 | 15 | This chapter provides additional resources for learning more about 16 | enterprise application architecture, the Java EE platform, and GlassFish 17 | Server. 18 | -------------------------------------------------------------------------------- /src/main/jbake/assets/_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-architect 2 | 3 | title: [First Cup of Java EE Tutorial] 4 | description: [First Cup of Java EE Tutorial Project] 5 | 6 | # sidebar links url 7 | links: 8 | source: https://github.com/javaee/firstcup 9 | download: https://github.com/javaee/firstcup/releases 10 | #mailinglist: https://javaee.groups.io/g/tutorial 11 | #javadocs: 12 | docs: https://javaee.github.io/firstcup/toc.html 13 | #faq: 14 | 15 | -------------------------------------------------------------------------------- /src/main/jbake/content/creating-example.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Creating Your First Java EE Application 4 | next=creating-example001.html 5 | prev=java-ee002.html 6 | ~~~~~~ 7 | = Creating Your First Java EE Application 8 | 9 | 10 | [[GCRKP]][[creating-your-first-java-ee-application]] 11 | 12 | 3 Creating Your First Java EE Application 13 | ----------------------------------------- 14 | 15 | This chapter gives an overview of the example applications and 16 | step-by-step instructions on coding and running the `dukes-age` web 17 | service example application. 18 | -------------------------------------------------------------------------------- /src/main/jbake/content/next-steps001.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=The Java EE Tutorial 4 | next=next-steps002.html 5 | prev=next-steps.html 6 | ~~~~~~ 7 | = The Java EE Tutorial 8 | 9 | 10 | [[GCRLH]][[the-java-ee-tutorial]] 11 | 12 | The Java EE Tutorial 13 | -------------------- 14 | 15 | The https://javaee.github.io/tutorial[Java EE Tutorial] documents the 16 | technologies that make up the Java EE platform. The Java EE Tutorial 17 | describes each piece of the platform in detail, and includes code 18 | examples that demonstrate how to use each piece of the platform. 19 | -------------------------------------------------------------------------------- /src/main/jbake/content/java-ee.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Understanding Java Platform, Enterprise Edition 4 | next=java-ee001.html 5 | prev=intro002.html 6 | ~~~~~~ 7 | = Understanding Java Platform, Enterprise Edition 8 | 9 | 10 | [[GCRLO]][[understanding-java-platform-enterprise-edition]] 11 | 12 | 2 Understanding Java Platform, Enterprise Edition 13 | ------------------------------------------------- 14 | 15 | This chapter describes the basic concepts behind enterprise application 16 | development and examines how an application server is the sum of its 17 | Java EE containers. 18 | -------------------------------------------------------------------------------- /src/main/jbake/content/intro001.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Goals of This Tutorial 4 | next=intro002.html 5 | prev=intro.html 6 | ~~~~~~ 7 | = Goals of This Tutorial 8 | 9 | 10 | [[GCQYJ]][[goals-of-this-tutorial]] 11 | 12 | Goals of This Tutorial 13 | ---------------------- 14 | 15 | At the completion of this tutorial, you will: 16 | 17 | * Understand the basics of tiered applications 18 | * Understand the basics of the Java EE platform 19 | * Have created a multitiered Java EE application 20 | * Have deployed and run your application on a Java EE server 21 | * Know where to go next for more information on the Java EE platform 22 | -------------------------------------------------------------------------------- /src/main/jbake/content/next-steps002.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=More Information on the Java EE Platform 4 | prev=next-steps001.html 5 | ~~~~~~ 6 | = More Information on the Java EE Platform 7 | 8 | 9 | [[GKHRA]][[more-information-on-the-java-ee-platform]] 10 | 11 | More Information on the Java EE Platform 12 | ---------------------------------------- 13 | 14 | For more information on the Java EE platform, see these resources: 15 | 16 | * The GlassFish project (`https://javaee.github.io/glassfish/`) 17 | * The Aquarium (`http://blogs.oracle.com/theaquarium/`), a blog about 18 | GlassFish Server and open-source Java EE projects 19 | -------------------------------------------------------------------------------- /src/main/jbake/content/web-application001.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=The firstcup-war Project 4 | next=web-application002.html 5 | prev=web-application.html 6 | ~~~~~~ 7 | = The firstcup-war Project 8 | 9 | 10 | [[GJBCA]][[the-firstcup-war-project]] 11 | 12 | The firstcup-war Project 13 | ------------------------ 14 | 15 | The `firstcup-war` web application project consists of the Java 16 | Persistence API entity, the enterprise bean, and the JavaServer Faces 17 | web front end. 18 | 19 | The `firstcup-war` example application consumes the data from the 20 | `dukes-age` web service using the JAX-RS client API. A JavaServer Faces 21 | web front end asks users to enter their birthdays to find out who is 22 | older, the user or Duke. This data is stored in an Apache Derby database table 23 | using the Java Persistence API. The business logic, which provides the 24 | core functionality of the application, is handled by an enterprise bean. 25 | 26 | All the tiers described in link:java-ee001.html#GCRKR[Tiered 27 | Applications] are present in the `firstcup-war` web application. The web 28 | or client tier is the JavaServer Faces front end. The enterprise 29 | information systems, or EIS, tier is the Derby database. The business 30 | tier is the enterprise bean. 31 | -------------------------------------------------------------------------------- /src/main/jbake/content/web-application.adoc: -------------------------------------------------------------------------------- 1 | type=page 2 | status=published 3 | title=Creating Your Second Web Application 4 | next=web-application001.html 5 | prev=creating-example002.html 6 | ~~~~~~ 7 | = Creating Your Second Web Application 8 | 9 | 10 | [[GLCFC]][[creating-your-second-web-application]] 11 | 12 | 4 Creating Your Second Web Application 13 | -------------------------------------- 14 | 15 | This chapter gives step-by-step instructions on coding and running the 16 | `firstcup-war` web application, which uses the `dukes-age` web service 17 | described in link:creating-example.html#GCRKP[Chapter 3, "Creating Your 18 | First Java EE Application"]. The `firstcup-war` web application is a 19 | more complicated application that uses several different Java EE APIs. 20 | 21 | * link:web-application001.html#GJBCA[The firstcup-war Project] 22 | * link:web-application002.html#GIMNT[Creating the Web Application Project 23 | Using the Archetype] 24 | * link:web-application003.html#GJBCS[Modifying the Java Persistence API 25 | Entity] 26 | * link:web-application004.html#GCRLX[Modifying the Enterprise Bean] 27 | * link:web-application005.html#GCRLT[Modifying the Web Client] 28 | * link:web-application006.html#GCTNX[Building, Packaging, Deploying, and 29 | Running the firstcup-war Web Application] 30 | -------------------------------------------------------------------------------- /src/main/jbake/templates/footer.ftl: -------------------------------------------------------------------------------- 1 | <#-- a footer template fragment included in the page template --> 2 |
| 13 | 14 | 15 | Previous 16 | 17 | | 18 | #if> 19 | 20 | <#if content.next??> 21 |22 | 23 | 24 | Next 25 | 26 | | 27 | #if> 28 | 29 |30 | 31 | 32 | Contents 33 | 34 | | 35 |
41 | Copyright © 2017, Oracle and/or its affiliates. All rights reserved.
42 |
43 |
44 |
45 |
46 |