On 10/8/07, jpuro <[EMAIL PROTECTED]> wrote:
>
> Hmmm...  So maybe it makes more sense to re-use this in ServiceMix.  It would
> be nice to have something that is bundled with servicemix that allows for
> tcp/udp/etc protocols.

MINA is an awesome choice for this because it provides a nice
framework to use for networking instead of the actual low-level
networking APIs.

You can implement this style of binding component in ServiceMix by
starting with the servicemix-binding-component archetype. It creates a
skeleton Maven project for a binding component and then you go through
it all and fill in the gaps. You just need to implement a condition to
determine the request type required (tcp or udp) and then, say, put
each code block in a corresponding method.

Here's some on info on doing this with UDP via MINA:

http://mina.apache.org/udp-tutorial.html

And here's some info on using TCP sockets with MINA:

http://mina.apache.org/quick-start-guide.html

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Reply via email to