Hi Camel in Action chapter 7 covers using Mina with Camel, and how to build a custom codec in Mina.
The source code may be used as inspiration http://code.google.com/p/camelinaction/source/browse/#svn%2Ftrunk%2Fchapter7%2Fmina%253Fstate%253Dclosed How is the data format to the truck? Is there a special byte combination at the end, to mark the end of data? Or is it fixed length or something else? The camel-hl7 component has a mina codec, where it uses 2 bytes combo to mark the end of the data. On Fri, Nov 25, 2011 at 10:03 PM, newbiee <m_ess...@hotmail.com> wrote: > CAMEL Community: > > I have raised this question earlier also and got some directions which are > great, but I am still stuck at a critical step and need your help in solving > it. > > I am new to CAMEL and learning it. I have a project which I have explained > in my other post but now I am focusing on where I am stuck. I have drawn a > diagram which I am attaching with this post in an attempt to better convey > my question. I am develpoing a prototype to prove that CAMEL can be used to > solve this problem. > > I have written a small java program to send a command to the digi device and > I'm sucessfully able to execute it and getting the response back from the > truck. I have used "jsch-0.1.41.jar" in my program. Now I want to prove that > this can be done in CAMEL. This will be a great way to convince others and > launch CAMEL and start using it at work place. > > I have been told that NETTY or MINA camel component can be used. > I have been told to use EXEC component for command line > I have been told to use template.requestBody > > The suggestion are great, but I need more help in put all the pieces > together. > > Here I only want to discuss how to prepare a route that will > > 1. Send a command to the digi device > 2. Receive response from the digi device > > I want to implement and test it with actual digi device. I do not want a > test case. I have spent a lot of time, trying to implement it but I could > not, though I have learnt a lot about unit testing, direct endpoint, > consumer and producer template but I am unable to put all the dots together > to come-up with the solution. I think direct endpoint, consumer and producer > template are good for unit testing, not for implementing/executing actual > route. (I may be wrong) > > Please help me in completing this prototype. > > Thank you. > > > > > http://camel.465427.n5.nabble.com/file/n5023683/toAndFromTruck.jpg > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Remote-Messaging-Using-CAMEL-tp5023683p5023683.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/