-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default SpEL to configure partition key expression for outbound messages #1040
Comments
Thanks for reporting this. It seems like the |
- When binding the default BindingProperties, we use RelaxedDataBinder without any specific conversion service. This makes the `String` to SpEL `Expression` conversion failing when the producer properties such as `partitionKey/SelectorExpression` are bound. - Update the underlying conversion service (which includes the SpELConverter via EnableBinding) into RelaxedDataBinder - Update test Resolves spring-cloud#1040
- When binding the default BindingProperties, we use RelaxedDataBinder without any specific conversion service. This makes the `String` to SpEL `Expression` conversion failing when the producer properties such as `partitionKey/SelectorExpression` are bound. - Update the underlying conversion service (which includes the SpELConverter via EnableBinding) into RelaxedDataBinder - Update test Resolves spring-cloud#1040
Hi, I ran into the same problem recently. I'm using 1.3.3.RELEASE of spring-cloud-stream. It's said that it's already fixed in #1041 . I checked the source code and the modification has already applied to it. I can't figure out why the problem still remains in my situation. |
From @ashvinkanani-dream on August 17, 2017 9:9
Hi,
I'd like to configure the partition key expression for all outbound messages being sent by any producer.
To achieve this I have configured following property
But, it didn't worked for me.
Also, when I configured the property for each output channel, it worked fine.
Reference
Copied from original issue: spring-cloud/spring-cloud-stream-binder-kafka#182
The text was updated successfully, but these errors were encountered: