1 Reply Latest reply on Jan 3, 2014 12:48 PM by kcbabo

    Quickstart example camel-binding

    steffi.s.

      Hi,

       

      I have a problem with the switchyard quickstart example camel-binding.

      How can I create a new Service in the Java Developer Tool without an Interface?

      In the example the Service GreetingService has no Interface, but this is not possible in the switchyard tool. I only can create a new Service if I define a Interface.

       

      Thank for your help.

        • 1. Re: Quickstart example camel-binding
          kcbabo

          There are two service definitions in the camel-binding example:

          • A component service which is tied to the implementation and private to the application.
          • A composite service which is promoted from the component service and exposed to clients outside the application.

           

          The component service has an explicit interface definition in switchyard.xml.  The composite service does not because it defaults to using the contract of the component service it promotes.  So, in that example, the composite service really does have a contract, it's just inherited from the component service.  You can do the same thing in the tooling by creating the component service first and then promoting that service and accepting the same interface used on the component service (the tooling defaults to this setting).