Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (10 sloc) 955 Bytes
<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>
<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>