Hi,
Please find a fairly complete example in my github repo [1]. To run it,
just clone it and run mvn:install. You can open it in your IDE of choice
and play with it. I did not yet explain in the readme why it is
implemented that way and I intend to do it in the next couple of days,
but the code is fairly simple and easy to follow.
Also note that I didn't need to use any java code (thanks to the power
of the ootb eips implemented by camel) with the exception of the
DigiRequest class which is only used when:
digi.prepare-request=direct:digi-request
... in the properties file (you need to uncomment that line and comment
out the next). You would probably want some code to prepare the real
message sent to the digis. The message is now a String, but could be a
byte stream. You may also want to use a pojo for your message and use
some form of marshalling, up to you.
One more thing: in this example I used a tcp connection (via
camel-netty) as you expressed an interest in that protocol. As mentioned
on the list, other protocols are also supported by Camel.
Have some fun with the code, it should be pretty straightforward and I
hope it will be helpful to you or others.
Cheers,
Hadrian
[1] https://github.com/hzbarcea/camel-samples/tree/master/camel-digi
On 11/16/2011 04:28 AM, newbiee wrote:
Hadrian
--------
Thank you very much, it is indeed very nice of you. I am vehemently waiting
for the example.
--
View this message in context:
http://camel.465427.n5.nabble.com/Remotely-pulling-messages-using-CAMEL-tp4971149p4997180.html
Sent from the Camel - Users mailing list archive at Nabble.com.