On  5 Okt, Ole Husgaard wrote:
> Hi,
> 
> I hope it is OK that I forward your reply to the list.
> 
> David Maplesden wrote:
>> Sounds like a good idea.  It didn't feel when writing the code that an extra
>> thread per connection would be a problem.  If it is for you then you will
>> probably want to pool the communication threads as well, as there is at
>> least one of these per connection for the commonly used OIL and UIL
>> communication mechanisms.
> 
> Yes, I have been looking at this too, but found no easy solution.
> Maybe because I am not very familiar with I/O under Java.
> 
> My problem is multiplexing several file stream reads on a single
> thread. Here, the Java libraries seem to lack features similar
> to the BSD select(2) syscall or the SysV poll(2) syscall.
> While something could be emulated with the InputStream.available()
> method, it would be a busy wait for input since this method would
> have to be called almost constantly.
> 
> I believe that the new I/O system in JDK1.4 supports this, but
> we cannot require users to use that (yet). See JSR-51.

There might be a way around that. One of the members in JSR-51 has
written a non blocking io library for java (on Unix plattforms) that
works with earlier releases of the JDK - nbio. According to the website, it
is used in  SwiftMQ "to provide superior scalability and performance for
MQ-based applications". Something to beat for JBossMQ ;-)

//Peter
> 
> 
> Best Regards,
> 
> Ole Husgaard.
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development


//Peter
-- 
Jobba hos oss: http://www.tim.se/weblab
------------------------------------------------------------
Peter Antman             Technology in Media, Box 34105 100 26 Stockholm
Systems Architect        WWW: http://www.tim.se
Email: [EMAIL PROTECTED]        WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 
------------------------------------------------------------


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to