2 Replies Latest reply on Sep 3, 2013 3:23 PM by kcbabo

    Switchyard - Idempotent Repository Example

    srini8881

      Hi,

       

      I am trying to integrate idempotent repository with SwitchYard SFTP component.  I am planning to use JDBC repository for the same.

       

      I am trying to use the idempotentRepository of the SFTP component (on the lines of apache camel) but lost...Should we create a subscriber SQL component and associate the table?  Then how do we reference this with the SFTP component?

       

      I would be really be grateful if someone can list the series of steps or step of implementation?

       

      Thanks

      Srini.

        • 1. Re: Switchyard - Idempotent Repository Example
          srini8881

          Hi,

           

          Any help in above context would definitely benefit many people who are trying to find a similar solution.

           

          Any reference in terms of articles or links would also help.

           

          Appreciate it!

          Thanks

          • 2. Re: Switchyard - Idempotent Repository Example
            kcbabo

            We don't support specifying an idempotent repository for a Camel gateway, but if you use Camel as your service implementation then you can configure and use an IdempotentRepository instance of your choice using Java DSL.  Just create the repository instance in your RouteBuilder class and refer to it in the route definition.

             

            In the future, it might be interesting to provide this as a policy or feature of a service with a pre-configured idempotent repository in the runtime.  Feel free to file a feature request if you would find this (or another approach) useful.