1 Reply Latest reply on Oct 20, 2011 10:26 AM by giveway850

    Define Simple Camel Route: ¿endpoints defined in same Bundle as route?

    giveway850

      Hello.

       

      I wanted to ask you for the best way to create a simple route in Camel with a WS-consumer and WS-provider.

       

      If I am not wrong, I have two basic options:

       

      Opt1 .- Create a Bundle with the definition of the route, cxfbc-consumer and cxfbc-provider (all packaged in the same bundle). To define another route I would add to this Bundle or create another new and defines the endpoints. This is good because everything is compacted in a bundle.

       

      Opt2 .- I define 3 Bundles: One for cxfbc-consumer, one for provider and one for Camel route. In this case the endpoints are published through NMR and camel route can access them (I guess the cxf endpoints are published with target attribute to "nmr:service").

       

      What you think is the best approach? Packaged togheter? or separately and extensive use of NMR?

       

      Greetings and thanks at all

        • 1. Re: Define Simple Camel Route: ¿endpoints defined in same Bundle as route?
          giveway850

          Update:

           

          At this moment I define endpoint at same Bundle as Camel Route (endpoint and camel route togheter)

           

          The only reason I've is that camel Bundle communicate to others Bundles through NMR, so the endpoint is config in its bundle with the address attribute "nmr:address"...

           

          In this case I couldnt redefine URL endpoint and the "real" URL of Web Services would be the one that is defined in WSDL file (URL is unknown for me at this moment).

           

          any opinion?