Donald Whytock wrote:
> 
> You can do it with a single email endpoint that points to your SMTP
> server, producing an exchange for each event for each user by putting
> the destination email address in the message's "to" header.
> 

Thanks and that is what I have planned. When ever the users informs their
intent to watch an product the 
something like the following piece of code executes. Is this what you talk
about when you say the end
 point can be shared?

void addRoutes(String selectorString, User user) throws Exception {
      context.addRoutes(new RouteBuilder() {
            from("activemq:topic:product?selector=" + selectorString).
            .process(<Sets the exchange with the message and to
address>)
           
.to("smtp://mycompany.mailserver:30?password=tiger&username=scott");
      });
}

--
View this message in context: 
http://camel.465427.n5.nabble.com/Maximum-Number-of-Routes-tp4539803p4540083.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to