Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Eisele committed Apr 7, 2016
1 parent ca676f5 commit 78c8f88
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -7,6 +7,10 @@
*.jar
*.war
*.ear
*.zip

temp
example

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
Expand Down
21 changes: 21 additions & 0 deletions chapters/eefirstspringsecond.adoc
Expand Up @@ -15,3 +15,24 @@ Create a blank Java EE application via maven in a local folder.
mvn -DarchetypeGroupId=com.airhacks -DarchetypeArtifactId=javaee7-essentials-archetype -DarchetypeVersion=1.3 -DarchetypeRepository=http://repo.maven.apache.org/maven2/ -DgroupId=com.osa16 -DartifactId=example -Dversion=1.0-SNAPSHOT -Dpackage=com.osa16.example -Darchetype.interactive=false --batch-mode archetype:generate
----

Open the project with your favorite IDE and look around a bit. Create a simple +GreetingService+

[source, console]
----
@Path("customer")
public class GreetingService {
@Context
UriInfo context;
@GET
@Produces("application/json")
public String getJson() {
String text = "WildFly Application " + context.getBaseUri() + " - Hostname: " + System.getenv().get("HOSTNAME") + "";
return "{\"hello\":\"world\"}";
}
}
----
7 changes: 7 additions & 0 deletions chapters/preparation.adoc
Expand Up @@ -21,3 +21,10 @@ Memory: At least 4 GB+, preferred 8 GB
. Download Apache Maven...
.. from Internet: https://maven.apache.org/download.cgi
. Unzip to a directory of your choice and add it to the `PATH`.

### Install WildFly
WildFly 10 is the latest release in a series of JBoss open-source application server offerings. WildFly 10 is an exceptionally fast, lightweight and powerful implementation of the Java Enterprise Edition 7 Platform specifications. The state-of-the-art architecture built on the Modular Service Container enables services on-demand when your application requires them.

Simply extract your chosen download to the directory of your choice. You can install WildFly 10 on any operating system that supports the zip or tar formats. Refer to the Release Notes for additional information related to the release.

Briefly go over the https://docs.jboss.org/author/display/WFLY10/Getting+Started+Guide[getting started guide and verify that your server is running]
21 changes: 21 additions & 0 deletions osac16/index.html
Expand Up @@ -521,6 +521,27 @@ <h3 id="_install_wildfly_10">Install WildFly 10</h3>
<pre class="highlight"><code class="language-console" data-lang="console">mvn -DarchetypeGroupId=com.airhacks -DarchetypeArtifactId=javaee7-essentials-archetype -DarchetypeVersion=1.3 -DarchetypeRepository=http://repo.maven.apache.org/maven2/ -DgroupId=com.osa16 -DartifactId=example -Dversion=1.0-SNAPSHOT -Dpackage=com.osa16.example -Darchetype.interactive=false --batch-mode archetype:generate</code></pre>
</div>
</div>
<div class="paragraph">
<p>Open the project with your favorite IDE and look around a bit. Create a simple GreetingService</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-console" data-lang="console">@Path("customer")
public class GreetingService {

@Context
UriInfo context;

@GET
@Produces("application/json")
public String getJson() {
String text = "WildFly Application " + context.getBaseUri() + " - Hostname: " + System.getenv().get("HOSTNAME") + "";
return "{\"text\":\"" + text + "\"}";

}
}</code></pre>
</div>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 78c8f88

Please sign in to comment.