AutoGenerating routeId on a camel
2 answers
As far as I know, there is no autogeneration policy on routeNaming that you can use, but you can do something similar to this:
private String myURI;
from("jms:queue:" + myURI).routeId("JmsComponent:" + myURI)
.to("....");
Using something like plan or spring to inject your variable into a java class you can change your URI and it will change the route name accordingly. You can also use the full URI in your personal variable and then parse the URI endpoint yourself and format it for routeId.
+1
source to share