These quickstarts will run in both the JBoss AS 7 or JBoss Enterprise Application Platform 6 environments. Check the README.md file in each quickstart folder for more details and specific instructions.
If you want to run the quickstarts in JBoss EAP, we recommend using the JBoss EAP zip. This version chooses the exact dependencies used in EAP and ensures you test and compile against your runtime environment.
These are the quickstarts for JBoss AS 7 and JBoss Enterprise Application Platform 6. You will find detailed tutorials in the various guides at https://docs.jboss.org/author/display/AS7
Quickstarts with tutorials in the Getting Started Developing Applications Guide are noted with two asterisks ( ** ) following the quickstart name.
bean-validation
- Bean Validation, JPAbmt
- EJB, Programmatically control transactionscdi-injection
- CDI injections & qualifiers + Servletcmt
- EJB, how to use container managed transactionsejb-in-ear
- EJB + JSF, JAR and WAR deployed as EARejb-in-war
- EJB + JSF deployed as a warejb-remote
- shows how to access EJBs remotely (EJB + JNDI)forge-from-scratch
- Forgegreeter
- CDI + JSF + JPA + EJB + JTAh2-console
- H2 Database consolehelloworld
** -Very basic CDI + Servlethelloworld-gwt
- GWThelloworld-html5
- Very basic HTML5helloworld-jms
- JMShelloworld-jsf
- Very basic CDI + JSFhelloworld-mdb
- Very basic JMS and MDBshelloworld-osgi
- OSGihelloworld-rs
- CDI + JAX-RShelloworld-singleton
- Singleton Session Beanhibernate3
- Hibernate 3hibernate4
- Hibernate 4jts
- Using JTS to coordinate distributed transactionskitchensink
** - CDI + JSF + JPA + EJB + JPA + JAX-RS + BVkitchensink-ear
- kitchensink as an EAR archivekitchensink-html5-mobile
- kitchensink using HTML5, suitable for mobile and tablet computerskitchensink-jsp
- kitchensink converted to use JSPlog4j
- JBoss Modules, Class loading, loggingnumberguess
** - CDI + JSFpayment-cdi-event
- CDIservlet-async
- CDI + Asynchronous Servlet + Asynchronous EJBservlet-filterlistener
- Servlet Filter and Listenerwsat-simple
- Simple WS-AT JAX-WS Web servicewsba-coordinator-completion-simple
- Simple WS-BA JAX-WS Web service with coordinator driven completionwsba-participant-completion-simple
- Simple WS-BA JAX-WS Web service with participant driven completion
To run these quickstarts with the provided build scripts, you will need the following:
-
Java 1.6, to run JBoss AS and Maven. You can choose from the following: * OpenJDK * Oracle Java SE * Oracle JRockit
-
Maven 3.0.0 or newer, to build and deploy the examples * Follow the official Maven installation guide if you don't already have Maven 3 installed. * If you have Maven installed, you can check the version by running this command in a shell prompt:
mvn --version
-
The JBoss AS 7 distribution zip or the JBoss Enterprise Application Platform 6 distribution zip * For information on how to install and run JBoss, refer to the product documentation.
You can also deploy the quickstarts from Eclipse using JBoss tools. For more information on how to set up Maven and the JBoss tools, refer to the Getting Started Developing Applications Guide.
If you are using the JBoss AS 7 Quickstart distribution, the community artifacts are available in the Maven central repository so no additional configuration is needed.
If you are using the JBoss Enterprise Application Platform 6 distribution, you will need to download and configure the Maven repository.
-
Download the JBoss Enterprise Application Platform 6 Maven repository distribution zip and unzip it into a directory of your choice.
-
Modify the example-settings.xml file located in the root of your quickstarts folder. Replace all instances of 'path/to/jboss-eap/repo' within '<url>file:///path/to/jboss-eap/repo</url>' with the fully qualified path to the Maven repository you unzipped in the previous step.
-
When you run Maven commands, you will need to append '-s PathToQuickstarts/example-settings.xml' to the command, for example:
mvn jboss-as:deploy -s PathToQuickstarts/example-settings.xml
-
If you do not want to specify the alternate path for your user settings on every Maven command, you can configure your user settings as follows: * If you have an existing ~/.m2/settings.xml file, modify it with the configuration information from the example-settings.xml file. * If there is no ~/.m2/settings.xml file, copy the example-settings.xml file to the ~/.m2 directory and rename it to settings.xml.
To build and deploy a quickstart, in most cases you will do the following:
-
Start the JBoss application server.
-
In a shell prompt, navigate to the root of the quickstart you want to run.
-
Type the following:
-
For AS 7 and EAP 6 configured with the Maven user settings, type:
mvn package jboss-as:deploy
-
For EAP 6 that is not configured with Maven user settings, type:
mvn package jboss-as:deploy -s PathToQuickstarts/example-settings.xml
-
-
See the README file in the individual quickstart folder for specific information on how to run and access the example.