How to parameterize an object in integration flow?Spring Integration - how to pass parameters into service activatorSpring IntegrationFlow for multiple JSON object patternsUsing header to build url in http outbound channel adapterSpring Integration Usage and Approach ValidationHow change default channel on Spring Integration Flow with Java DSLhow to send message to both kafka channel and jdbc with spring integration?Object Method Reference within Spring Integration FlowGateway not setting the replyChannel headerspring-integration: how to deliver deferred details as SSEHandling MessageHandlingException with advice and continue the flow spring integration dsl

Why does trim() NOT remove char 160?

Are modern clipless shoes and pedals that much better than toe clips and straps?

Is a player able to change alignment midway through an adventure?

In the MCU, why does Mjölnir retain its enchantments after Ragnarok?

Why do all fields in a QFT transform like *irreducible* representations of some group?

Why did MS-DOS applications built using Turbo Pascal fail to start with a division by zero error on faster systems?

Who was president?

Why is Boris Johnson visiting only Paris & Berlin if every member of the EU needs to agree on a withdrawal deal?

What is the hex versus octal timeline?

Photoshop CS6 - Remove glare/hue from image

What is the history of the university asylum law?

Why is less being run unnecessarily by git?

If the first law of thermodynamics ensures conservation of energy, why does it allow systems to lose energy?

Can pay be witheld for hours cleaning up after closing time?

Compelling story with the world as a villain

Is there any way to keep a player from killing an NPC?

What to say to a student who has failed?

What does どうかと思う mean?

Are there account age or level requirements for obtaining special research?

Is there a known non-euclidean geometry where two concentric circles of different radii can intersect? (as in the novel "The Universe Between")

Irish Snap: Variant Rules

How do I request a longer than normal leave of absence period for my wedding?

Is it safe to remove the bottom chords of a series of garage roof trusses?

Why does The Ancient One think differently about Doctor Strange in Endgame than the film Doctor Strange?



How to parameterize an object in integration flow?


Spring Integration - how to pass parameters into service activatorSpring IntegrationFlow for multiple JSON object patternsUsing header to build url in http outbound channel adapterSpring Integration Usage and Approach ValidationHow change default channel on Spring Integration Flow with Java DSLhow to send message to both kafka channel and jdbc with spring integration?Object Method Reference within Spring Integration FlowGateway not setting the replyChannel headerspring-integration: how to deliver deferred details as SSEHandling MessageHandlingException with advice and continue the flow spring integration dsl






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I has integration flow for polling data from database. I set up message source which return list of object, this list I want to pass to method handle in subFlow.



It's code for this goals, but I get a compilation error: incompatible types Message to List.



@Bean
public IntegrationFlow integrationFlow(
DataSource dataSource,
MessageHandler amqpHandler,
PersonService personService,
PersonChecker personChecker)
return IntegrationFlows
.from(getMessageSource(personService::getPersons), e -> e.poller(getPollerSpec()))
.wireTap(subFlow -> subFlow.handle(personChecker::checkPerson))
.split()
.publishSubscribeChannel(pubSub -> pubSub
.subscribe(flow -> flow.bridge()
.transform(Transformers.toJson())
.handle(amqpHandler))
.subscribe(flow -> flow.bridge()
.handle(personService::markAsSent)))
.get();



I know about solution to pass service and name of method handle(personChecker, checkPerson), but it's not suitable for me.



Is exists possibility to pass in wireTap subflow in method handle list with objects Person instead Message message?










share|improve this question






























    0















    I has integration flow for polling data from database. I set up message source which return list of object, this list I want to pass to method handle in subFlow.



    It's code for this goals, but I get a compilation error: incompatible types Message to List.



    @Bean
    public IntegrationFlow integrationFlow(
    DataSource dataSource,
    MessageHandler amqpHandler,
    PersonService personService,
    PersonChecker personChecker)
    return IntegrationFlows
    .from(getMessageSource(personService::getPersons), e -> e.poller(getPollerSpec()))
    .wireTap(subFlow -> subFlow.handle(personChecker::checkPerson))
    .split()
    .publishSubscribeChannel(pubSub -> pubSub
    .subscribe(flow -> flow.bridge()
    .transform(Transformers.toJson())
    .handle(amqpHandler))
    .subscribe(flow -> flow.bridge()
    .handle(personService::markAsSent)))
    .get();



    I know about solution to pass service and name of method handle(personChecker, checkPerson), but it's not suitable for me.



    Is exists possibility to pass in wireTap subflow in method handle list with objects Person instead Message message?










    share|improve this question


























      0












      0








      0








      I has integration flow for polling data from database. I set up message source which return list of object, this list I want to pass to method handle in subFlow.



      It's code for this goals, but I get a compilation error: incompatible types Message to List.



      @Bean
      public IntegrationFlow integrationFlow(
      DataSource dataSource,
      MessageHandler amqpHandler,
      PersonService personService,
      PersonChecker personChecker)
      return IntegrationFlows
      .from(getMessageSource(personService::getPersons), e -> e.poller(getPollerSpec()))
      .wireTap(subFlow -> subFlow.handle(personChecker::checkPerson))
      .split()
      .publishSubscribeChannel(pubSub -> pubSub
      .subscribe(flow -> flow.bridge()
      .transform(Transformers.toJson())
      .handle(amqpHandler))
      .subscribe(flow -> flow.bridge()
      .handle(personService::markAsSent)))
      .get();



      I know about solution to pass service and name of method handle(personChecker, checkPerson), but it's not suitable for me.



      Is exists possibility to pass in wireTap subflow in method handle list with objects Person instead Message message?










      share|improve this question














      I has integration flow for polling data from database. I set up message source which return list of object, this list I want to pass to method handle in subFlow.



      It's code for this goals, but I get a compilation error: incompatible types Message to List.



      @Bean
      public IntegrationFlow integrationFlow(
      DataSource dataSource,
      MessageHandler amqpHandler,
      PersonService personService,
      PersonChecker personChecker)
      return IntegrationFlows
      .from(getMessageSource(personService::getPersons), e -> e.poller(getPollerSpec()))
      .wireTap(subFlow -> subFlow.handle(personChecker::checkPerson))
      .split()
      .publishSubscribeChannel(pubSub -> pubSub
      .subscribe(flow -> flow.bridge()
      .transform(Transformers.toJson())
      .handle(amqpHandler))
      .subscribe(flow -> flow.bridge()
      .handle(personService::markAsSent)))
      .get();



      I know about solution to pass service and name of method handle(personChecker, checkPerson), but it's not suitable for me.



      Is exists possibility to pass in wireTap subflow in method handle list with objects Person instead Message message?







      spring-integration spring-integration-dsl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 27 at 16:44









      RomanRoman

      316 bronze badges




      316 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0















          .handle((p, h) -> personService.checkPerson(p))





          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382457%2fhow-to-parameterize-an-object-in-integration-flow%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            .handle((p, h) -> personService.checkPerson(p))





            share|improve this answer





























              0















              .handle((p, h) -> personService.checkPerson(p))





              share|improve this answer



























                0














                0










                0









                .handle((p, h) -> personService.checkPerson(p))





                share|improve this answer













                .handle((p, h) -> personService.checkPerson(p))






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 27 at 17:00









                Gary RussellGary Russell

                93.3k9 gold badges58 silver badges85 bronze badges




                93.3k9 gold badges58 silver badges85 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382457%2fhow-to-parameterize-an-object-in-integration-flow%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript