Viggy
Viggy

Reputation: 75

Spring integration initialize a list of service activators at runtime

I m new to Spring Integration and We have a requirement where we need to have listeners initialized for a given set of directories dynamically at runtime. Directory list will be updated periodically in a property file and Service activators and queue channels need to initialized for each directories on this list.

For examples directories list can be Dir1,Dir2,Dir3. This directories list can change in future. A new directory can be added or an existing directory can be
removed.

At runtime based on the list provided in the properties file, I need to create a service activator dynamically with queue channel associated for each one of them. Is there an viable option available in Spring Integration to achieve this requirement ? Kindly clarify.

Upvotes: 1

Views: 364

Answers (1)

Gary Russell
Gary Russell

Reputation: 174554

See the runtime flow registration provided by the upcoming 1.2 release of the java DSL.

Also, take a look at the answer to this question - it has links for another mechanism to create multiple inbound mail adapters programmatically.

Upvotes: 1

Related Questions