Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed a Java servlet in a Ring/Compojure app #176

Closed
MichaelBlume opened this issue Nov 13, 2017 · 4 comments
Closed

Embed a Java servlet in a Ring/Compojure app #176

MichaelBlume opened this issue Nov 13, 2017 · 4 comments

Comments

@MichaelBlume
Copy link

Sometimes a dependency provides an out-of-the-box Servlet object. A good example is the HystrixMetricsStreamServlet which exposes metrics to an external hystrix dashboard. Is there a good one-size-fits-all way to embed such a Servlet in a Compojure/Ring app?

@weavejester
Copy link
Owner

There might be a library available to do that, but I'm not aware of one off hand. Compojure is just a routing library, so this is a little beyond its scope.

@jiacai2050
Copy link

@MichaelBlume
Copy link
Author

@jiacai2050 I tried that, when I wired it into my project I got an error No implementation of method: :write-body-to-stream of protocol: #'ring.core.protocols/StreamableResponseBody found for class: lamina.core.channel.Channel -- I assume some dependency has changed since it worked

@jiacai2050
Copy link

jiacai2050 commented Nov 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants