LibraryToggle FramesPrintFeedback

A message endpoint is the interface between an application and a messaging system. As shown in Figure 13.3, you can have a sender endpoint, sometimes called a proxy or a service consumer, which is responsible for sending In messages, and a receiver endpoint, sometimes called an endpoint or a service, which is responsible for receiving In messages.

In Fuse Mediation Router, an endpoint is represented by an endpoint URI, which typically encapsulates the following kinds of data:

An endpoint URI in Fuse Mediation Router has the following general form:


Where ComponentPrefix is a URI prefix that identifies a particular Fuse Mediation Router component (see Component Reference for details of all the supported components). The remaining part of the URI, ComponentSpecificURI, has a syntax defined by the particular component. For example, to connect to the JMS queue, Foo.Bar, you can define an endpoint URI like the following:


To define a route that connects the consumer endpoint, file://local/router/messages/foo, directly to the producer endpoint, jms:Foo.Bar, you can use the following Java DSL fragment:


Alternatively, you can define the same route in XML, as follows:

<camelContext id="CamelContextID" xmlns="">
    <from uri="file://local/router/messages/foo"/>
    <to uri="jms:Foo.Bar"/>
Comments powered by Disqus
loading table of contents...