camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve973 <steve...@gmail.com>
Subject Mina endpoint getEndpointUri() results in error?
Date Sat, 07 Apr 2012 04:21:25 GMT
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 http://camel.apache.org/mina.html 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.

--
View this message in context: http://camel.465427.n5.nabble.com/Mina-endpoint-getEndpointUri-results-in-error-tp5624093p5624093.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message