Created
September 18, 2014 11:43
-
-
Save lordofthejars/b26a2096b5be8d5c260c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.ejb.Stateless; | |
| import javax.ws.rs.GET; | |
| import javax.ws.rs.Path; | |
| import javax.ws.rs.Produces; | |
| @Stateless | |
| @Path("/sample") | |
| public class SampleController { | |
| @GET | |
| @Produces("text/plain") | |
| public String sample() { | |
| return "Hello World"; | |
| } | |
| public static void main(String args[]) { | |
| TomEEApplication.run(HelloWorldServlet.class, SampleController.class); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you need HelloWorldServlet.class referenced on line 17? Blog post does not explain it's purpose?