tag:blogger.com,1999:blog-6532146623144059052.post4538384435392923028..comments2023-09-23T07:51:38.933-07:00Comments on John Ament: Announcing HammockJohn Amenthttp://www.blogger.com/profile/11775194521384049642noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6532146623144059052.post-89118690153868432802014-11-11T06:50:59.167-08:002014-11-11T06:50:59.167-08:00Hi John, the idea is brilliant and hammock works l...Hi John, the idea is brilliant and hammock works like a charm for creating standalone rest services. But I still wonder, what the ContextRoot configuration property is used for. How does it relate to the @ApplicationPath annotation used for Jax-RS Application? It seems to be internally added UriInfo request path but when I enter it in the browser it seems to be added again, ending up with the error: Could not find resource for full path: http://localhost:80/contextRoot/contextRoot/resourceAnonymoushttps://www.blogger.com/profile/09897975984597806156noreply@blogger.comtag:blogger.com,1999:blog-6532146623144059052.post-20170483805386337822014-09-29T08:53:45.587-07:002014-09-29T08:53:45.587-07:00I think I figured it out. Not sure if this is the ...I think I figured it out. Not sure if this is the best approach:<br /><br /> ServletInfo defaultServlet = Servlets.servlet("DefaultServlet", DefaultServlet.class)<br /> .setLoadOnStartup(1)<br /> .addMapping("/web/*");<br /><br />... .addServlet(resteasyServlet).setDeploymentName("ResteasyUndertow")<br /> .addServlet(defaultServlet).setDeploymentName("DefaultUndertow")<br /> .setResourceManager(new FileResourceManager(new File("web"), 1000))<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6532146623144059052.post-26710927980772976072014-09-29T07:02:56.724-07:002014-09-29T07:02:56.724-07:00I've been searching for a while for a simple, ...I've been searching for a while for a simple, embedded CDI/REST setup and found Hammock last week. Very nice!<br /><br />What would be a simple way to add a regular http servlet?<br /><br />Thanks,<br />AllenAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6532146623144059052.post-30405919551643304322014-03-05T10:18:08.784-08:002014-03-05T10:18:08.784-08:00Interesting. Would be cool to see how this perform...Interesting. Would be cool to see how this performs vs Wildfly to get an idea of the additional overhead introduced since they both use the same components.<br /><br />There was some discussion of adding Wildfly to the TechEmpower benchmark project, but it doesn’t look like it has been done yet: http://lists.jboss.org/pipermail/wildfly-dev/2014-February/001729.html<br /><br />Would be awesome to see them both up there.Marc Richardshttps://www.blogger.com/profile/07627402908638807501noreply@blogger.comtag:blogger.com,1999:blog-6532146623144059052.post-47709181593463833452014-02-27T06:13:24.176-08:002014-02-27T06:13:24.176-08:00Cool stuff John. Glad to see you taking your code...Cool stuff John. Glad to see you taking your code/ideas we discussed on the resteasy list and making it a reality. Let me know of any changes you need in resteasy to make this workAnonymousnoreply@blogger.com