[jdev] Java XMPP libraries

Christian Cantrell christiancantrell at mac.com
Sat May 20 13:26:20 CDT 2006


On May 19, 2006, at 8:58 PM, Trejkaz wrote:

> I've always used JSO to make components, it turns out to be fairly  
> simple if
> you borrow the component example code and work from there.

I can get the component working, I just don't like the architecture.   
All the examples I've seen use an infinite loop to process packets  
from the stream rather than blocking until packets come in and then  
routing them appropriately.  If I knew why it was done this way, and  
the advantages, I would probably be ok with it, but it seems like an  
unnecessary waste of resources as the infinite loop is very processor  
intensive.  Any idea why the demos are done this way?

Thanks,
Christian



More information about the JDev mailing list