Hi Marco,
I would suggest using the Socket class's
"setSoTimeout(int milliseconds)"
i.e. only if you *absolutely* need to use the socket class.
I noticed that you were using WLS 5.1, and if you
are doing this from within your EJB's, this is restricted
by the EJB spec 1.1 (If WLS indeed allows it, as you
mention, you might need to take into account that
other EJB vendors might be more 'strict' and hence
your code might not be portable across containers)
-krish
> >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".
> >
>
> _________________________________________________________________
> 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".
>
>
===========================================================================
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".