Using 3.4.0

I occasionally receive the "Could not find route for exchange: InOut" error
message when using the RemoteServiceMixClient to talk to a jms endpoint. 
After turning up the logging levels, I can see that all of my jms endpoints
are being synced to the RemoteServiceMixClient context.  However, on the
occasions when I receive the error above, it looks like the
RemoteServiceMixClient has not yet finished adding the remote endpoints
prior to my call to client.sendSync().

For example, if i wanted to send a message to Service3...

My log appears like the following:
[ActiveMQ Session Task] DEBUG org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow 
- ID-10-2-1-78-11fb4a81b80-5-0: adding remote endpoint: 
ServiceEndpoint[service=(urn:test}Service1,endpoint=endpoint]

[ActiveMQ Session Task] DEBUG org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow 
- ID-10-2-1-78-11fb4a81b80-5-0: adding remote endpoint: 
ServiceEndpoint[service=(urn:test}Service2,endpoint=endpoint]

[main] WARN org.apache.servicemix.jbi.nmr.DefaultBroker  - ServiceName
({urn:test}Service3) specified for routing but can't find it registered

Could not find route for exchange: InOut[
....
service: {urn:test}Service3

...

[ActiveMQ Session Task] DEBUG org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow 
- ID-10-2-1-78-11fb4a81b80-5-0: adding remote endpoint: 
ServiceEndpoint[service=(urn:test}Service3,endpoint=endpoint]

I've confirmed this by listing the endpoints in the context after the call
to client.start().  When I have trouble, the endpoint that i'm looking for
is not yet in the ComponentContext.getEndpoints().  

All of that said, what is the proper way to wait for the full
RemoteServiceMixClient initilization ?

I tried using the getCurrentStatus on the parent class (along with isStarted
and isInitialized), but none of these are providing me with a reliable way
to determine if my remote endpoint has been added.

The only other thing i can think of is polling the endpoint listing for the
endpoint that's of interest.  However, then I would have to implement my own
time out, etc for determining if an endpoint does not actually exist.

Thank you for any recommendations.
Chris
-- 
View this message in context: 
http://www.nabble.com/RemoteServiceMixClient-jms-endpoint-synchronization-problem-tp22169440p22169440.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to