users@glassfish.java.net

Embedded client connection timeouts problem

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Jul 2010 13:57:28 PDT

Hi all,
My scenario:
I have an swing app that i've put to ACC, it works fine if server is up and GFv3 running on it. But in real life there could be a situations (server down, connection problems...) i have to solve. Default timeouts and retries are unacceptable because it last for 10 minutes or more and user doesn't know what's going on.
So i decided to tune number of retries of connection and times between them.
I tried all hints that i could find - but no luck :(

changing ORBConstants.TRANSPORT_TCP_CONNECT_TIMEOUTS_PROPERTY
or ORBConstants.TRANSPORT_TCP_TIMEOUTS_PROPERTY
from com.sun.corba.ee.spi.orbutil.ORBConstants - no luck
passing values to VM by -D option either no luck

There must be a way to change that behavior of ORB
Please point me to the right place.

Pshemol
 
PS: sorry for my english
[Message sent by forum member 'pshemol']

http://forums.java.net/jive/thread.jspa?messageID=476929