Is it possible to route all of request to another server directly? For example route all of this project specific rest endpoint localhost:8080/get-something to another project endpoint like this: someIp:8081/get-something2 . something like this:
from("localhost:8080/get-something")
.to("someIp:8081/get-something2")
or this:
rest()
.path("/get-something")
.get()
.route()
.to("someIp:8081/get-something2")
I've tried too many ways but I cant!
See Question&Answers more detail:os