Skip to content

Commit 6bc064d

Browse files
author
Lukasz Rzeszotarski
committed
BAEL-150 Introduction to DeltaSpike
1 parent 883ec05 commit 6bc064d

42 files changed

Lines changed: 2615 additions & 11 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎deltaspike/.cheatsheet.xml‎

Lines changed: 695 additions & 0 deletions
Large diffs are not rendered by default.

‎deltaspike/.factorypath‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<factorypath>
2+
<factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
3+
<factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/hibernate-jpamodelgen/1.1.1.Final/hibernate-jpamodelgen-1.1.1.Final.jar" enabled="true" runInBatchMode="false"/>
4+
<factorypathentry kind="VARJAR" id="M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar" enabled="true" runInBatchMode="false"/>
5+
</factorypath>

‎deltaspike/.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.idea
2+
baeldung-jee7-seed.iml
3+
/target

‎deltaspike/README.md‎

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
baeldung-jee7-seed: Assortment of technologies including Arquillian
2+
========================
3+
Author: Pete Muir
4+
Level: Intermediate
5+
Technologies: CDI, JSF, JPA, EJB, JPA, JAX-RS, BV
6+
Summary: An example that incorporates multiple technologies
7+
Target Project: WildFly
8+
Source: <https://github.com/wildfly/quickstart/>
9+
10+
What is it?
11+
-----------
12+
13+
This is your project! It is a sample, deployable Maven 3 project to help you get your foot in the door developing with Java EE 7 on JBoss WildFly.
14+
15+
This project is setup to allow you to create a compliant Java EE 7 application using JSF 2.2, CDI 1.1, EJB 3.3, JPA 2.1 and Bean Validation 1.1. It includes a persistence unit and some sample persistence and transaction code to introduce you to database access in enterprise Java.
16+
17+
There is a tutorial for this quickstart in the [Getting Started Developing Applications Guide](https://github.com/wildfly/quickstart/guide/baeldung-jee7-seed/).
18+
19+
System requirements
20+
-------------------
21+
22+
All you need to build this project is Java 7.0 (Java SDK 1.7) or better, Maven 3.1 or better.
23+
24+
The application this project produces is designed to be run on JBoss WildFly.
25+
26+
27+
Configure Maven
28+
---------------
29+
30+
If you have not yet done so, you must [Configure Maven](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/CONFIGURE_MAVEN.md) before testing the quickstarts.
31+
32+
33+
Start JBoss WildFly with the Web Profile
34+
-------------------------
35+
36+
1. Open a command line and navigate to the root of the JBoss server directory.
37+
2. The following shows the command line to start the server with the web profile:
38+
39+
For Linux: JBOSS_HOME/bin/standalone.sh
40+
For Windows: JBOSS_HOME\bin\standalone.bat
41+
42+
43+
Build and Deploy the Quickstart
44+
-------------------------
45+
46+
_NOTE: The following build command assumes you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. See [Build and Deploy the Quickstarts](https://github.com/jboss-developer/jboss-eap-quickstarts#build-and-deploy-the-quickstarts) for complete instructions and additional options._
47+
48+
1. Make sure you have started the JBoss Server as described above.
49+
2. Open a command line and navigate to the root directory of this quickstart.
50+
3. Type this command to build and deploy the archive:
51+
52+
mvn clean package wildfly:deploy
53+
54+
4. This will deploy `target/baeldung-jee7-seed.war` to the running instance of the server.
55+
56+
57+
Access the application
58+
---------------------
59+
60+
The application will be running at the following URL: <http://localhost:8080/baeldung-jee7-seed/>.
61+
62+
63+
Undeploy the Archive
64+
--------------------
65+
66+
1. Make sure you have started the JBoss Server as described above.
67+
2. Open a command line and navigate to the root directory of this quickstart.
68+
3. When you are finished testing, type this command to undeploy the archive:
69+
70+
mvn wildfly:undeploy
71+
72+
73+
Run the Arquillian Tests
74+
-------------------------
75+
76+
This quickstart provides Arquillian tests. By default, these tests are configured to be skipped as Arquillian tests require the use of a container.
77+
78+
_NOTE: The following commands assume you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. See [Run the Arquillian Tests](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/RUN_ARQUILLIAN_TESTS.md) for complete instructions and additional options._
79+
80+
1. Make sure you have started the JBoss Server as described above.
81+
2. Open a command line and navigate to the root directory of this quickstart.
82+
3. Type the following command to run the test goal with the following profile activated:
83+
84+
mvn clean test -Parq-wildfly-remote
85+
86+
87+
Run the Quickstart in JBoss Developer Studio or Eclipse
88+
-------------------------------------
89+
You can also start the server and deploy the quickstarts from Eclipse using JBoss tools. For more information, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md)
90+
91+
92+
Debug the Application
93+
------------------------------------
94+
95+
If you want to debug the source code or look at the Javadocs of any library in the project, run either of the following commands to pull them into your local repository. The IDE should then detect them.
96+
97+
mvn dependency:sources
98+
mvn dependency:resolve -Dclassifier=javadoc

0 commit comments

Comments
 (0)