Excludes in a JAX-RS app on Glassfish

22 views
Skip to first unread message

Stephan Kliche

unread,
Dec 12, 2012, 2:23:46 PM12/12/12
to sitemes...@googlegroups.com
Hi Group,

I am using SiteMesh in an application which also provides some JAX-RS restful endpoinds and I am testing it on Glassfish 3.1.2.
The REST endpoint is mapped to the ApplicationPath "/api":

@ApplicationPath("/api")
public class RestApp extends Application {
}

 And I have a JAX-RS annotated class which provides a GET path under "/test"

@Path("/test")
@Stateless
public class RestEndpoint {
@GET
public String test() {
return String.valueOf(db.getDbc().getDbInfo().getDocCount());
}
}

Reply all
Reply to author
Forward
0 new messages