1) Download the JBoss CVS source, modify src/main/org/jnp/interfaces/NamingContext.java. You can get the source via sourceforge, do:
cvs co -r Branch_3_2 jboss-3.2
Suggestion: Add a system property, "jnp.connectRetries", which overrides the default, hard-coded value.
2) Build and test.
3) Submit a patch via sourceforge. I, or somebody else will apply it for the next release.
You can also modify MAX_RETRIES, as it is a static integer.
org.jnp.interfaces.NamingContext.MAX_RETRIES = 1;
Thanks for you reply.
Changing the value of MAX_RETRIES helped a lot.
I do have a related question:
Is there an RMI property with which we can control the timeout on the lookup call?
Thanks very much.
I think the source might be helpful, you can track it down using CVS or download anonymously. I don't have it on this machine, but there are a few I/O settings you can play with.