I'm trying to go forward with this.
I have a few doubts and questions:
1. Route like:
from("hl7Listener").to("lookupService");
is only invoke when actually something is send by client to listener. Am I
right?
In this way I can slightly change that route to:
from("hl7Listener").process(new Processor()
{
@Override
public void process(Exchange exchange) throws Exception
{
exchange.getOut().setBody("test");
}
});
but this will allow me to send message to client only when he sent something
to listener. I want to be able to send message to client any time I want.
2. I'm debugging this with IntelliJ and in camelContext when I connect
client I can see some changes. When I connect client I can see that deep
down in camelContext there is something like managedSessions. If I connect 1
client I see 1 mangedSession, if I connect 2 client I can see 2 managed
sessions.
So I think that those sessions are mine connected clients. Is there anyway
that I can fetch these clients from camelContext and send them a message
like with:
exchange.getOut().setBody("test");
--
View this message in context:
http://camel.465427.n5.nabble.com/Endpoint-Routes-and-client-connection-tp5739738p5739821.html
Sent from the Camel - Users mailing list archive at Nabble.com.