I'm pretty new to JBoss and Seam. My project has a REST service of the style
@Path("/media")
@Name("mediaService")
public class MediaService {
@GET()
@Path("/test")
public Response getTest() throws Exception {
String result = "this works";
ResponseBuilder builder = Response.ok(result);
return builder.build();
}
}
I can reach this at http://localhost:8080/application/resource/rest/media/test
. However, I don't like this URL at all and would prefer something much shorter like http://localhost:8080/application/test
.
Can you please point me in the right direction on how to configure the application correctly? (Developing using Eclipse)