How set timeout in a EJB remote lookup?
843830Jun 7 2007 — edited Jun 8 2007Hello,
how can I set the timeout of a remote lookup?
InitialContext ctx = new InitialContext();
EJB2Remote ejb2RemoteWithLookup = (EJB2Remote)ctx.lookup("java:comp/env/ejb/EJB2");
If EJB2 is a bean that reside on a remote server and that server isn't reachable, the lookup fails after about 30-40 seconds. It's possible to set the timeout to 5 seconds?
I use SJSAS 9.
Thank you,
Luca