Spring Integration Java DSL How to use Spel for Service Activator -


could know how call spel .handle() (invoke service activator) in spring integration java dsl?

the reason call service activator parameter. xml, use spel similar "@myservice.mymethod('param1', 'param2')" in expression attribute.

i can't find similar in si java dsl

there no .handle(string expression) variant. found bit redundant , decided lambda variant full java access better:

.handle(payload, headers) -> this.myservice.mymethod('param1', 'param2')) 

where this.myservice @autowired service. parameter can determined similar way.

let know why insist expression variant, when there full java code access.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -