Pavlo,
On http://servicemix.apache.org/servicemix-camel.html you find some
basic information as well a link to an example. Before you can use the
MINA component in your RouteBuilder, you'll have to add it as a
dependency on your Camel SU project.
After that, you should look at the Camel website for more information on
how to specify the route itself and how to configure the MINA endpoint
(basically, start your route with from("mina:tcp:...")... ). To interact
with other services on the ESB, you can uri's (as defined on
http://activemq.apache.org/camel/jbi.html).
I agree we have to provide more samples/explanation about using Camel
inside ServiceMix to make the possibilities there more clear to users.
Gert
Pavlo Fenoga wrote:
Thank you for fast respond. I will look at the mentioned components.
But I will be much appreciated for any samples or links regarding real usage
of such components in ESB.
Gert Vanthienen wrote:
L.S.,
ServiceMix itself doesn't have a plain TCP/IP binding component, but you
can use servicemix-camel to deploy a Camel route that uses the Camel
MINA component (http://activemq.apache.org/camel/mina.html) to handle
this. For invoking the webservice, you can use the servicemix-http
component. IIRC, servicemix-camel uses synchronous communication to
interact with other services on the ESB by default, so you shouldn't
have to a lot there.
Does this help?
Gert
Pavlo Fenoga wrote:
Hello,
I am evaluating ServiceMix 3.2.1 to be used as ESB solution for
integrating
different healthcare applications.
I have spent some time to play with provided examples and as for now
everything looks very promising.
Now I try to implement simple real scenario.
Application A should communicate with Application B
Appl. A uses TCP/IP protocol to send requests in XML format and receive
responds in XML format as well.
Each request is a XML message with prefix and suffix.
Request from appl. A should be translated to SOAP message in order to
invoke
WebService of Appl. B
Appl. B should respond on request sending XML message back to appl. A
So, communication is synchronous and looks like the following:
TCP <-> XSLT <-> WS
The questions are:
1. What BC should be used for working with TCP protocol?
2. What BC should be used to invoke WebService?
3. How to make communication synchronous? All provided examples seem to
be
asynchronous.
Thank you.
-----
---
Gert Vanthienen
http://www.anova.be