Details
-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
Description
SourceForge Submitter: martinrenner .
Hi.
The following code sequence is leading to a
CommunicationException with JBoss 3.2.1 (although JBoss
is listening on port 12345):
Properties env = new Properties();
env.put("jnp.discoveryPort", "12345");
Context ctx = new InitialContext(env);
ctx.lookup("something");
The cause for this exception is in the file
org.jnp.interfaces.NamingContext in the method
"discoverServer()":
In line 1003, the value of "jnp.discoveryPort" is
assigned to the local variable "group". It should be
"port".
A workaround is to specify
env.put("jnp.discoveryPort", "230.0.0.4:12345");
In this case, the value of the port is assigned
correctly to the local variable "port".