spring-integration-samples icon indicating copy to clipboard operation
spring-integration-samples copied to clipboard

No XML example of jdbc outbound gateway

Open ffazil opened this issue 11 years ago • 3 comments

Is there an no xml example of the basic jdbc sample available? Am particularly interested in converting the following part using annotations.

<bean id="personResultMapper" class="org.springframework.integration.samples.jdbc.PersonMapper"/>
    <int-jdbc:outbound-gateway data-source="datasource" 
                                request-channel="createPersonRequestChannel"
                                reply-channel="createPersonReplyChannel"
                                update="insert into Person (name,gender,dateOfBirth) 
                                    values
                                    (:name,:gender,:dateOfBirth)"
                                query="select * from Person where id = :id"     
                                request-sql-parameter-source-factory="requestSource"
                                reply-sql-parameter-source-factory="replySource"
                            row-mapper="personResultMapper"
                                keys-generated="true"/>

ffazil avatar May 09 '14 14:05 ffazil

No, there isn't yet. However the Java and Annotations configuration samples are on our road. Do you need the solution for you instantly or just ask general question?

artembilan avatar May 09 '14 15:05 artembilan

It will be great if I get a solution immediately even if it is not part of 4.0.x GA release.

ffazil avatar May 14 '14 06:05 ffazil

Here you are: https://gist.github.com/artembilan/8d7d4cf6959c71be2cc9

Let us know, if this is enough for you

artembilan avatar May 14 '14 06:05 artembilan