Skip to content
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

No XML example of jdbc outbound gateway #107

Open
ffazil opened this issue May 9, 2014 · 3 comments
Open

No XML example of jdbc outbound gateway #107

ffazil opened this issue May 9, 2014 · 3 comments

Comments

@ffazil
Copy link

ffazil commented May 9, 2014

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"/>
@artembilan
Copy link
Member

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?

@ffazil
Copy link
Author

ffazil commented May 14, 2014

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

@artembilan
Copy link
Member

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

Let us know, if this is enough for you

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

No branches or pull requests

2 participants