The only other way I've used in these situations is to write a native lib
(dll or so) that can serve as a facade for select() calls. Then some Java
object can call into it using JNI. Java doesn't support
select() unfortunately. Here's a link:
http://developer.java.sun.com/developer/bugParade/bugs/4075058.html
>From: Marco Pas <[EMAIL PROTECTED]>
>Reply-To: Marco Pas <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: EJB container, back office systems and sockets
>Date: Tue, 6 Mar 2001 14:27:00 +0100
>
>14:26 / 6-3-2001
>
> JMS seems to me as a solution for a-synchronous messaging.
> I want (near)real-time information..
>
> Do you still think JMS is an option ?
> Or do you have other suggestions ?
>
> groeten / regards,
> Marco Pas
> CMG Trade, Transport & Industry B.V.
>
>--------------------------------------------
>
>JH> This sounds like a good candidate for JMS.
>
>
> >>From: Marco Pas <[EMAIL PROTECTED]>
> >>Reply-To: Marco Pas <[EMAIL PROTECTED]>
> >>To: [EMAIL PROTECTED]
> >>Subject: EJB container, back office systems and sockets
> >>Date: Tue, 6 Mar 2001 13:10:54 +0100
> >>
> >>13:05 / 6-3-2001
> >>
> >>
> >> In our application (running on WL 5.1 Servicepack 8) we have to
>access
> >>a remote
> >> machine via a socket connection, this to retrieve remote data.
> >> I know this is not in the specs but we have to do so !
> >>
> >> When the remote machine is ok the socket connection is accepted
> >> very quickly. But when the remote system is ofline it takes about 2
> >> minutes to get an answer back from the socket. (a timeout occurs)
> >>
> >> If i have a lot of requests this fills all my available threads on
> >> waiting back-office systems.
> >>
> >> Does anyone know how to tackle this problem, i want to check if the
> >> remote system is alive and capable of answering !
> >>
> >> regards,
> >> Marco Pas
> >>
> >>===========================================================================
> >>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
> >>of the message "signoff EJB-INTEREST". For general help, send email to
> >>[EMAIL PROTECTED] and include in the body of the message "help".
> >>
>
>JH> _________________________________________________________________
>JH> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>JH>
>===========================================================================
>JH> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
>JH> of the message "signoff EJB-INTEREST". For general help, send email to
>JH> [EMAIL PROTECTED] and include in the body of the message "help".
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff EJB-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".