if I understand you question right, you have:
- 127.0.0.1:8056 as SMS client
- localhost:2775 as SMS sender
it looks like this
from:client1 ----> to:sender1
lets say you want to connecto more SMS clients to your SMS sender.
from:client1 -----> to:sender1
from:client2 ----/
from:client3 ---/
All you need to make is to add more from nodes.
I think you are using springish xml file to configure Camel. It means you do it in declarative way and camel does as much as you declare in you xml file. No for loops or something. So, literaly you need to add more from uri="smpp://[email protected]:8056?password=password&systemType=consumer"/>
lines into your xml. In other way you can use camel java API to configre/add your nodes dynamically. So, you could configure or add your nodes from DB or whatsoever.
Well, but you have to add as much to uri="smpp://smppclient@localhost:2775?password=password&&systemType=producer"/>
nodes which is not exactly what we meant. To fix this, we add a abstraction node between. It will look like:
from:client1 -----> direct:sender ----> to:sender1
from:client2 ----/
from:client3 ---/
So your code will be:
from uri="smpp://[email protected]:8056?password=password&systemType=consumer"/>
to uri="direct://sender"
from uri="smpp://smppclient2@...."/>
to uri="direct://sender"
from uri="smpp://smppclient3@..."/>
to uri="direct://sender"
from uri="direct://sender"
to uri="smpp://smppclient@localhost:2775?password=password&&systemType=producer"/>
You can consider to use seda
instead of direct
so you get queuing quite easily.