camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Wolf <cwolf.a...@gmail.com>
Subject Problem with DefaultCamelContext EndpointRegistry
Date Wed, 12 Jun 2013 19:28:28 GMT
I am trying to develop a new component, but it needs to be able to
have it's endpoint be registered in
the CamelContext endpoint registry.   Whenever the runtime tries to
call DefaultCamelContext.getEndpoint(String uri)
it returns null, even though, in the debugger, I can expand
DefaultCamelContext.endpoints.map

...and see that, for sure, the endpoint is in the registry, except the
key now has "%3A2" appended, so of course,
the EndpointKey, which looks like:

dsftp://localhost:21000?binary=true&directory=target%2Fres%2Fhome&filter=%23cpmdFileFilter&idempotent=true&localWorkDirectory=target%2Fres%2Ftmp%2Flocal&move=archive%2F%24%7Bfile%3Aname%7D&password=adpt5&separator=UNIX&username=adpt5

...won't match, so that explains why
DefaultCamelContext.getEndpoint(String uri) returns null.


DefaultCamelContext.endpoints.map:  (other entries removed for clarity)
{dsftp://localhost:21000binary=true&directory=target%2Fres%2Fhome&filter=%23cpmdFileFilter&idempotent=true&localWorkDirectory=target%2Fres%2Ftmp%2Flocal&move=archive%2F%24%7Bfile%3Aname%7D&password=adpt5&separator=UNIX&username=adpt5%3A2=java.lang.ref.SoftReference@f7e5307}

*** So why does the key in the endpoints.map have "%3A2"  appended to it? ***

Thanks,

Chris

Mime
View raw message