Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (10 sloc) 0.955 kb
<h1>JAX-RS Hello World Example</h1>
<p>This example demonstrates the use of <em>CDI 1.0</em> and <em>JAX-RS</em> in <em>JBoss AS 7</em>.</p>
<p>The example can be deployed using Maven from the command line or from Eclipse using JBoss Tools.</p>
<p>To set up Maven or JBoss Tools in Eclipse, refer to the <em>Getting Started Guide</em>.</p>
<p>To deploy to JBoss AS 7, start JBoss AS 7, and type <code>mvn package jboss-as:deploy</code>. </p>
<p>The application is deployed to <a href="http://localhost:8080/jboss-as-helloworld-rs">http://localhost:8080/jboss-as-helloworld-rs</a>, so in order to get either both content you will have to point</p>
<ul>
<li><a href="http://localhost:8080/jboss-as-helloworld-rs/xml">http://localhost:8080/jboss-as-helloworld-rs/xml</a> if you want <em>xml</em> or</li>
<li><a href="http://localhost:8080/jboss-as-helloworld-rs/json">http://localhost:8080/jboss-as-helloworld-rs/json</a> if you want <em>json</em></li>
</ul>
Jump to Line
Something went wrong with that request. Please try again.