camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Mina endpoint getEndpointUri() results in error?
Date Sat, 07 Apr 2012 08:17:58 GMT
On Sat, Apr 7, 2012 at 6:21 AM, Steve973 <> wrote:
> Due to a design consideration, we are creating endpoints by using a factory.
> A client specifies the type of endpoint it wants by submitting a
> configuration, but as the server, we want to be able to control what
> resources we provide and how we provide them.
> In the case of our Mina endpoints, we use a MinaConfiguration and then we
> create an endpoint from the resultant component, much like they show in the
> "Factory Approach" at but by using Java
> instead of XML.  At this point, we want to send a message to our client's
> endpoint to inform them about the endpoint we have created for them.
> However, when I try to do that with a MinaEndpoint, instead of providing me
> with a URI that describes the configuration that I used to create the
> endpoint, it gives me an error complaining that the URI wasn't set, and that
> MinaEndpoint does not implement the method that creates a default URI.
> How can I get this URI to send to the client?  Thanks in advance.

When you create endpoint manually then some endpoints cannot compute
their uri automatically if not provided. Then you need to manually do
this using the setEndpointUriIfNotSpecified method.

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
CamelOne 2012 Conference, May 15-16, 2012:
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message