camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krishy <>
Subject Re: Maximum Number of Routes
Date Thu, 30 Jun 2011 20:44:52 GMT

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(&lt;Sets the exchange with the message and to

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message