Yup, that makes sense. But after looking at spagic it seems that they already use mina in a similar fashion and handle a lot of other requirements for tcp/ip etc. Take a look at their source code and let me know what you think. Otherwise I'll just implement my own version on apache mina as I have seen camel-mina do.
-jeff bsnyder wrote: > > 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/ > > -- View this message in context: http://www.nabble.com/Basic-TCP-component-tf1595103s12049.html#a13105703 Sent from the ServiceMix - User mailing list archive at Nabble.com.
