15:42 / 6-3-2001

   Krishnan,

   I just want to test on the existence of the remote
   system, and the ability to reply !

   The socket class you mention creates a socket and waits until the
   socket is connected or gets a timeout. If it is connected no
   problem, but when the system is offline the timeout could be around
   2 to 10 seconds for example. This is not ok for me. I want an
   immediate reply from the socket if the system is offline.

   Maybe a java ping/telnet on a specific port would be sufficient,
   but this is not implemented in Java.

   groeten / regards,
   Marco Pas
   CMG Trade, Transport & Industry B.V.

--------------------------------------------

KS> Hi Marco,

KS> I would suggest using the Socket class's
KS> "setSoTimeout(int milliseconds)"

KS> i.e. only if you *absolutely* need to use the socket class.
KS> I noticed that you were using WLS 5.1, and if you
KS> are doing this from within your EJB's, this is restricted
KS> by the EJB spec 1.1 (If WLS indeed allows it, as you
KS> mention, you might need to take into account that
KS> other EJB vendors might be more 'strict' and hence
KS> your code might not be portable across containers)

KS> -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
KS> 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
KS> 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
>>
>>
KS> ===========================================================================
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
KS> body
>> of the message "signoff EJB-INTEREST".  For general help, send email to
>> [EMAIL PROTECTED] and include in the body of the message "help".
>>
>>

KS> ===========================================================================
KS> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
KS> of the message "signoff EJB-INTEREST".  For general help, send email to
KS> [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".

Reply via email to