Snjezana Peco [
https://community.jboss.org/people/snjeza] modified the blog post:
"Learn Java EE 6 quickly using JBoss Central"
To view the blog post, visit:
https://community.jboss.org/community/tools/blog/2011/12/18/learn-java-ee...
--------------------------------------------------------------
The *JBoss Central* editor includes several quickstarts that provide a quick run-through
of Java EE 6 features.
The quickstarts are based on amazing Pete Muir's JBoss AS7 quickstarts -
https://docs.jboss.org/author/display/AS7/Getting+Started+Developing+Appl...
JBoss AS 7.0 - Getting Started Developing Applications Guide
and are adapted to work with Eclipse/JBoss Tools.
This blog guides you how to install *JBoss Tools 3.3* and start work with Java EE 6 using
these tutorials.
h4. Installing JBoss Tools 3.3
In order to install *JBoss Tools 3.3*, you need to perform the following steps:
* install
http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/ind...
Eclipse Java EE IDE for Web Developers Download the appropriate archive for your OS,
unpack it and start Eclipse.
* Call *Help>Install New Software*..., click the *Add* button and enter the following
update site:
http://download.jboss.org/jbosstools/updates/development/indigo/
http://download.jboss.org/jbosstools/updates/development/indigo/
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17647/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
* select the *Abridged JBoss Tools 3.3* category
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17648/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Click *Next*, *Next*, check "*I accept the terms of the license agreements*"
and click *Finish*.
* Wait for Eclipse to download and install the *JBoss Tools 3.3*.
* Restart Eclipse when required.
You have installed *JBoss Tools 3.3*.
h4. JBoss Quickstarts (JBoss Central)
After Eclipse restarts, you will get the *JBoss Central* editor.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17598/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-175...
Expand the *JBoss Quickstart* widget in the *Project Examples* section
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17599/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-175...
The *helloworld, numberguess, login and kitchensink* quickstarts will guide you through
creating a Java EE 6 application.
Here I will describe to you how to create the *helloworld* application. The rest of the
applications are used in a similar way, but they introduce new concepts as shown in the
following figures:
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17600/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17601/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17602/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17603/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
The *HTML5* is a template project that doesn't include any cheat sheet.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17604/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
h4. Helloworld quickstart
In order to create the *helloworld* Java EE 6 application, you have to do the following:
1. click the *Helloworld* project example in the *JBoss Central* editor
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17605/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
2. *JBoss Tools* will warn you that you have to install JBoss AS 7.0 or 7.1 in order to
create, deploy and run this application.
If you have already installed and configured JBoss AS 7.x, you won't see any
requirement and will be able to skip to the step *3*.
* If you have already downloaded JBoss AS 7.x, you will be able to configure it using the
*Install* button.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17606/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Add the directory where you downloaded your JBoss AS and *JBoss Tools* will configure a
JBoss AS 7.x server for you.
* If you don't have any JBoss AS 7.x server, click the *Download and Install...*
button and *JBoss Tools* will, for you, download JBoss AS 7.0.2
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17607/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17608/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
3. When the JBoss AS is installed and configured, you will get the following dialog:
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17609/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Click the *Start* button.
The *jboss-as-helloworld* project will be imported and you will get the *helloworld* cheat
sheet that will help you to review the application.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17610/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17611/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Read the introduction to learn how the application works and click *Click to Begin*.
The following screen will appear:
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17612/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
After reading a detailed description, click *Click when complete*.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17613/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
The *HelloWorldServlet.java* section explains the *HelloWorld* servlet in detail. When
clicking the action, the cheat sheet will open the appropriate section of the code.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17614/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Run or skip all the actions in the *HelloWorldServlet.java* section. You will get the
*HelloService.java* section.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17615/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Click *Click to perform*. The following screen will show up:
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17616/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
That's it. You are ready to deploy and run the application on the JBoss AS 7 server
you previously installed and configured.
Click *Click to perform*
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17617/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Click *Next*
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17618/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
Finally, click the *Finish* button.
The cheat sheet will start the server, deploy the application and open it in a browser.
https://community.jboss.org/servlet/JiveServlet/showImage/38-4362-17619/j...
https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4362-176...
In a similar way, you will be able to create and review the *numberguess*, *login* and
*kitchensink* applications. *Kitchensink* is an especially interesting application. In
addition to explaining many Java EE 6 features (CDI, JSF, EJB, JTA, Bean Validation,
JAX-RS, Arquillian), it automatically runs an Arquillian test and enables you to create
your starting project.
Some advanced Java EE developers might also be interested in reviewing this application.
images/jeeblog24.png images/jeeblog24.png
--------------------------------------------------------------
Comment by going to Community
[
https://community.jboss.org/community/tools/blog/2011/12/18/learn-java-ee...]