I am not using spring integration yet.
Here is the problem: I have 20 exchanges, and I want to make 4 different type of queues(email/http/sms/ftp) and 4 different types of handlers(email/http/sms/ftp) for each one of those 20 exchanges....
I am getting a topicName from outside the system, so I create one exchange , i.e. (topic+"FanOutExchange") like this:
FanoutExchange exchange = new FanoutExchange(topicDbObj.getName()+Constants.EXCH ANGE);
Then since I have 4 different protocols of subscriber's subscriptions(email/http/sms/ftp), I create 4 queues like this:
Queue queue = new Queue(subObj.getProtocol()+Constants.QUEUE);
And then I bind them together like this:
Binding binding = new Binding(queue, exchange);
This adds to 20 exchanges and corresponding 80 queues.
Let's move onto POJO handlers' side...
I want to have 4 POJO handlers, just Like I have 4 queues, for each exchange, but the irony is this that these 4 POJO handlers should be nothing but different instances of the same 4 classes..How Can I achieve such a setting?
Can Spring integration help me here?
Last edited by stephanion2002; Oct 13th, 2010 at 10:59 AM.
SCBCD (EJB 3.0), SCWCD 1.5, SCJP 1.4