-
1. InitialContext#lookup does not timeout
stianst Apr 18, 2011 5:00 AM (in response to stianst)If I disconnect the network between the last lookup and invoking the bean it times out fine, so problem seems to be limited to InitialContext
-
2. InitialContext#lookup does not timeout
jaikiran Apr 18, 2011 5:05 AM (in response to stianst)Although not a solution to your problem, there's this one another similar post http://community.jboss.org/message/549274#549274
-
3. Re: InitialContext#lookup does not timeout
ronsen Jun 7, 2011 9:30 AM (in response to jaikiran)env.put("jnp.socketFactor", -> Factory?
-
4. Re: InitialContext#lookup does not timeout
stianst Jun 8, 2011 4:38 AM (in response to ronsen)Thanks for your comment. It still doesn't work after fixing that typo though, as neither of "jnp.socketFactory", "jnp.timeout" or "jnp.sotimeout" are used when invoking the naming server. These properties only configure the sockets used to retrieve the stub that is used to invoke the naming server. All the configuration of the stub itself is done on the server and it doesn't seem to be any way of configuring that.
-
-
6. Re: InitialContext#lookup does not timeout
stianst Jul 29, 2011 10:03 AM (in response to ronsen)Thanks Ron, but as I said in my previous comment all these properties are only relevant on the socket that is used to connect to the server to retrieve the stub. They do not set anything on the stub itself, which would be fully configured on the server. As far as I can tell there is no timeout set on the socket used by this stub.
In effect that means there is a timeout when retrieveing the stub (i.e. connecting to the naming server), but when using the stub (i.e. doing a lookup) there are no timeouts.
-
7. Re: InitialContext#lookup does not timeout
stianst Jul 29, 2011 10:06 AM (in response to stianst)My hope was that this would all be fixed in AS7 but there is no remote JNDI support at all in AS7. So I guess we'll be waiting for 7.1 to see!
Another thing I don't quite understand about the Naming implementation. There is a server socket listening on 1099, all that does is return the stub, while any communication to the Naming server is done through 1090. Why are two ports needed?
-
8. Re: InitialContext#lookup does not timeout
ronsen Aug 24, 2011 3:35 AM (in response to stianst)At first, as I checked the AS7, i was also quite disappointed that the JNDI support isnt implemented yet and that there only exists a "hack"-workaround for this, that is quite shaky at all....so, lets wait for 7.1 then.
The reason for the porting can be that these are 2 different modules, but to be honest i have no clue and asked the question my self as well.