"Bruce Snyder" <[EMAIL PROTECTED]> wrote 
in message 
news:[EMAIL PROTECTED]


Bruce,

Thanks for the information.

> There was a message about a basic TCP component back in May here:
>
> http://www.nabble.com/Re%3A-Basic-TCP-component-p4360825.html

I did try to do a search for information on this subject but I somehow 
missed the previous conversation.

I will review the thread and see if I can capture any thing useful.

> FWIW, implementing a comprehensive component that speaks TCP sounds
> easier than it really is. Consider the fact that dealing with a
> protocol as well as proxies and security alone can be quite difficult.
> When considering these issues alone, it makes much more sense to just
> use something like the servicemix-http component because there's
> already a protocol there (HTTP) and it can negotiate proxies and
> handle security. But it doesn't mean that a TCP component could not be
> created.
>

I figured that creating a general component isn't easy.  That's why I was 
asking before feeling the pain of the various gotcha's :)  Luckily, I don't 
need to worry about alot of the headaches (proxy, firewalls, etc) because my 
application will be only running on an internal network where I have some 
degree of control.

> If/When I ever have enough time to work on this, I would start looking
> at the OpenWire protocol from ActiveMQ
> (http://www.activemq.org/site/openwire.html). OpenWire is an open,
> multi-language, binary protocol so it already handles all the low
> level marshalling. That will handle the wire format, then you need to
> handle the TCP level. For this I'd start looking at the ActiveMQ TCP
> transport layer here:
>
> http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/

I took a quick look at this info.  I'm not sure that it would be helpful in 
my situation.  Granted, I am by no means an expert in ActiveMQ (how do you 
spell it again? :), so I am not sure of how I could take advantage of these 
capabilites.

Basically, I need to communicate with micro-plc's that capture and send 
various pieces of information to my application.  The way that I communicate 
with these devices is via normal tcp operations.  (open a socket, send some 
information, receive some information, close the socket).  The issue with 
these devices is that they don't have full-fledge OS and the functionality 
that one would expect.  They can be set up to open a socket and send some 
data, but I can't change/extend the format of the data being sent.

>
> And I'm sure I've left out some items as I just threw together these
> ides in the span of writing this email.
>
> Bruce
> -- 

I do appreciate the response.  Of various projects that I've tried to use in 
the past, this group has been one of the best in supporting us newbies.

Thanks,
James



Reply via email to