Hi, I have a requirement to use Java DSL to dynamically try to connect to broker and subscribe to multiple topicS. Since there are MANY brokers and topics, I'm thinking bout using properties such as follows:
<entry key="bundle1_t1">brokerUrl=url1,userId=userid1,pwd=pwd1,topicName=tname1</entry> ... <entry key="bundle1_tn">brokerUrl=url2,userId=userid2,pwd=pwd2,topicName=tname2</entry> I am thinking about having only 1 bundle that reads from properties, enumerate over keys, looks for certain pattern (e.g. all keys that start with bundle1), and retrieve brokerUrl, id, pwd, topicName. Then use that info in my RouteBuilder to setup 1..n routes using a loop. I'm able to load properties, retrieve all related keys, access all attributes, but am sort-of stuck on setting up the route in the from() clause. I appreciate all help. Regards, M. Hossein Amerkashi -- View this message in context: http://camel.465427.n5.nabble.com/Java-DSL-Dynamic-Broker-Config-tp4460059p4460059.html Sent from the Camel - Users mailing list archive at Nabble.com.