Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

XD-3251: Add a boot @ConfigurationProperties compatible MOMResolver. #1747

Closed
wants to merge 1 commit into from

Conversation

ericbottard
Copy link
Contributor

Upgrade to latest Boot SNAPSHOT (introduce an explicit task scheduler for "framework" tasks, different from the batch and SI schedulers), upgrade Spring Batch.

Add a boot @ConfigurationProperties compatible MOMResolver.

With this PR merged, one could drop a spring-cloud-stream module (such as the one resulting from spring-cloud/spring-cloud-stream#19) and properly see its "module options". Obviously, running the module as-is won't work, will need adaptation to the execution environment (in the form of the SPI @pperalta is working on) with the knowledge that any module option --foo=xxx must actually be passed to the s-c-s module as module.foo=xxx.

Upgrade to latest Boot SNAPSHOT, upgrade Spring Batch.

@PostConstruct
public void forceScheduledTaskExecutor() {
postProcessor.setScheduler(frameworkTaskScheduler);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting technique 😄

A couple of thoughts...

  • Perhaps we should open a JIRA against SF to fall back to some well-known bean name when there's more than one scheduler in the context?
  • We should probably document someplace how users can override this "framework" scheduler if they want multiple threads in the TPTS

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to Gary's comments, and...

I'm not a fan of the word "framework" here.

Also the thread prefix should be set.

@ericbottard
Copy link
Contributor Author

Closing as s-c-d is its own project, not going through the soft transition path

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants