forked from jboss-developer/jboss-eap-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.html
128 lines (128 loc) · 6.86 KB
/
README.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<h1>JBoss AS Quickstarts</h1>
<p>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. </p>
<p>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. </p>
<h2>Available Quickstarts</h2>
<p>These are the quickstarts for JBoss AS 7 and JBoss Enterprise Application Platform 6. You will find detailed tutorials in the
various guides at <a href="https://docs.jboss.org/author/display/AS7">https://docs.jboss.org/author/display/AS7</a></p>
<p>Quickstarts with tutorials in the <a href="https://docs.jboss.org/author/display/AS71/Getting+Started+Developing+Applications+Guide" title="Getting Started Developing Applications Guide">Getting Started Developing Applications Guide</a>
are noted with two asterisks ( ** ) following the quickstart name.</p>
<ul>
<li><code>bean-validation</code> - Bean Validation, JPA</li>
<li><code>bmt</code> - EJB, Programmatically control transactions</li>
<li><code>cdi-injection</code> - CDI injections & qualifiers + Servlet</li>
<li><code>cmt</code> - EJB, how to use container managed transactions</li>
<li><code>ejb-in-ear</code> - EJB + JSF, JAR and WAR deployed as EAR</li>
<li><code>ejb-in-war</code> - EJB + JSF deployed as a war</li>
<li><code>ejb-remote</code> - shows how to access EJBs remotely (EJB + JNDI)</li>
<li><code>forge-from-scratch</code> - Forge</li>
<li><code>greeter</code> - CDI + JSF + JPA + EJB + JTA</li>
<li><code>h2-console</code> - H2 Database console</li>
<li><code>helloworld</code> ** -Very basic CDI + Servlet</li>
<li><code>helloworld-gwt</code> - GWT</li>
<li><code>helloworld-html5</code> - Very basic HTML5</li>
<li><code>helloworld-jms</code> - JMS</li>
<li><code>helloworld-jsf</code> - Very basic CDI + JSF</li>
<li><code>helloworld-mdb</code> - Very basic JMS and MDBs</li>
<li><code>helloworld-osgi</code> - OSGi</li>
<li><code>helloworld-rs</code> - CDI + JAX-RS</li>
<li><code>helloworld-singleton</code> - Singleton Session Bean</li>
<li><code>hibernate3</code> - Hibernate 3</li>
<li><code>hibernate4</code> - Hibernate 4</li>
<li><code>jts</code> - Using JTS to coordinate distributed transactions</li>
<li><code>kitchensink</code> ** - CDI + JSF + JPA + EJB + JPA + JAX-RS + BV</li>
<li><code>kitchensink-ear</code> - kitchensink as an EAR archive</li>
<li><code>kitchensink-html5-mobile</code> - kitchensink using HTML5, suitable for mobile and tablet computers</li>
<li><code>kitchensink-jsp</code> - kitchensink converted to use JSP</li>
<li><code>log4j</code> - JBoss Modules, Class loading, logging</li>
<li><code>numberguess</code> ** - CDI + JSF</li>
<li><code>payment-cdi-event</code> - CDI</li>
<li><code>servlet-async</code> - CDI + Asynchronous Servlet + Asynchronous EJB </li>
<li><code>servlet-filterlistener</code> - Servlet Filter and Listener</li>
<li><code>wsat-simple</code> - Simple WS-AT JAX-WS Web service</li>
<li><code>wsba-coordinator-completion-simple</code> - Simple WS-BA JAX-WS Web service with coordinator driven completion</li>
<li><code>wsba-participant-completion-simple</code> - Simple WS-BA JAX-WS Web service with participant driven completion</li>
</ul>
<h2>Prerequisites</h2>
<p>To run these quickstarts with the provided build scripts, you will need the following:</p>
<ol>
<li>Java 1.6, to run JBoss AS and Maven. You can choose from the following:<ul>
<li>OpenJDK</li>
<li>Oracle Java SE</li>
<li>Oracle JRockit</li>
</ul>
</li>
<li>
<p>Maven 3.0.0 or newer, to build and deploy the examples</p>
<ul>
<li>Follow the official Maven installation guide if you don't already have Maven 3 installed. </li>
<li>
<p>If you have Maven installed, you can check the version by running this command in a shell prompt:</p>
<blockquote>
<p>mvn --version </p>
</blockquote>
</li>
</ul>
</li>
<li>
<p>The JBoss AS 7 distribution zip or the JBoss Enterprise Application Platform 6 distribution zip</p>
<ul>
<li>For information on how to install and run JBoss, refer to the product documentation.</li>
</ul>
</li>
</ol>
<p>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 <a href="https://docs.jboss.org/author/display/AS71/Getting+Started+Developing+Applications+Guide" title="Getting Started Developing Applications Guide">Getting Started Developing Applications Guide</a>.</p>
<h2>JBoss AS 7 Quickstart Instructions</h2>
<p>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.</p>
<h2>JBoss Enterprise Application Platform 6 Quickstart Instructions</h2>
<p>If you are using the JBoss Enterprise Application Platform 6 distribution, you will need to download and configure the Maven repository.</p>
<ol>
<li>
<p>Download the JBoss Enterprise Application Platform 6 Maven repository distribution zip and unzip it into a directory of your choice.</p>
</li>
<li>
<p>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.</p>
</li>
<li>
<p>When you run Maven commands, you will need to append '-s <em>PathToQuickstarts</em>/example-settings.xml' to the command, for example:</p>
<blockquote>
<p>mvn jboss-as:deploy -s <em>PathToQuickstarts</em>/example-settings.xml</p>
</blockquote>
</li>
<li>
<p>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:</p>
<ul>
<li>If you have an existing ~/.m2/settings.xml file, modify it with the configuration information from the example-settings.xml file.</li>
<li>If there is no ~/.m2/settings.xml file, copy the example-settings.xml file to the ~/.m2 directory and rename it to settings.xml.</li>
</ul>
</li>
</ol>
<h2>Building and Deploying the Quickstarts</h2>
<p>To build and deploy a quickstart, in most cases you will do the following:</p>
<ol>
<li>
<p>Start the JBoss application server.</p>
</li>
<li>
<p>In a shell prompt, navigate to the root of the quickstart you want to run.</p>
</li>
<li>
<p>Type the following: </p>
<ul>
<li>
<p>For AS 7 and EAP 6 configured with the Maven user settings, type: </p>
<blockquote>
<p>mvn package jboss-as:deploy </p>
</blockquote>
</li>
<li>
<p>For EAP 6 that is not configured with Maven user settings, type: </p>
<blockquote>
<p>mvn package jboss-as:deploy -s <em>PathToQuickstarts</em>/example-settings.xml</p>
</blockquote>
</li>
</ul>
</li>
<li>
<p>See the README file in the individual quickstart folder for specific information on how to run and access the example.</p>
</li>
</ol>