DropWizard is a great framework for creating rest services, and camel is a great routing framework. However, it seems that these two ain't so easily integrated. For example, I would like to use the DropWizard way of creating rest endpoints, and then use camel to listen for the invocation of these services and route them accordingly.
There is a feature request for creating a dropwizard component within camel:
https://issues.apache.org/jira/browse/CAMEL-5961
However, this seems to be due some time in the future.
Another resource i found was the following github repository.
https://github.com/plasma147/dropwizard-camel-play
Which solves this by notifying camel of rest service calls through the use of the "direct" uri endpoint. However, one would have to manually hardcode this boilerplate into every rest service.
I had an idea that one could create a custom component and then use reflection to find all classes with the @Path annotation to register endpoints within camel, however i'm not sure if this would actually trigger. Or would it if I had a routing rule something along the lines of?:
from("dropwizard:/some/path").to(....)
Or am I forced to actually fire off the message from the rest service to camel.
Is there any better ways of integrating dropwizard and camel? Or is this it? i deas greatly appreciated.