From all this conversation there seems to be a bit of disconnect
between the questions and the answers :). It looks to me that you are
making some assumptions about how camel is used and the answers don't
address that. The reason is that using Camel is much easier than I
believe you assume.
Here's what I suggest: can you post a bit of code showing how you
interact with your devices today? The protocol and content of the
messages is important. One of us would probably show you what the Camel
equivalent is. Also the scenario you describe is very simple and
suitable for Camel as others said (also solvable with little to no code
and the reason why you got so many answers).
Another important question you were asked, and I didn't see a reply, is
if you want to use a push or pull mechanism. That is, is it ok for the
digi gadgets to contact the 'home' central dispatcher, or 'home' needs
to ping each digi at regular intervals. You described the latter, but
totally ignored the former, which would be a viable alternative and a
bit simpler to handle. I assume you don't want to rely on digis 'calling
home' but want home to call the digis and handle errors (which could
happen for a number of reasons, from hardware failures to bad reception).
You also assume you need to open some sockets. No need to, camel will
handle that under the hood. You also mentioned IP addresses, how do you
know the addresses? Are you using static or dynamic IP, are you using
DNS? When you get a new digi how do you register it with your 'home' app?
Cheers,
Hadrian
On 11/14/2011 04:25 PM, newbiee wrote:
I will be opening a socket connection with digi device some thing like this:
Socket clientSocket = new Socket(IP address, port#);
my application is going to act as a client sending commands to the digi
device. Digi device in return will send my application a message that my
application will put in the queue for further processing.
Once data is in the queue I can route it using CAMEL, I understand that.
What I am trying to find the how MINA component for CAMEL can be used in
communicating with digi device and what is its significace. Please explain.
The example that I have tried and mention above is good only if my
application is a server but this is not the case, since I have to open the
socket connection.
--
View this message in context:
http://camel.465427.n5.nabble.com/Remotely-pulling-messages-using-CAMEL-tp4971149p4992507.html
Sent from the Camel - Users mailing list archive at Nabble.com.