Can't change JNDI port?
interestingly enough..
checking what ports are being listned to when the exception happens shows
java 14737 root 137u IPv6 336253778 TCP *:16024 (LISTEN)
java 14737 root 143u IPv6 336253779 TCP *:16423 (LISTEN)
looks like its ignoring the request to listen on another port and using the default one?

© 1999-2008 mendelson-e-commerce GmbH. All right reserved.
Hi,
I'm working on the pseudo multiple server thing and am struggling on changing the JNDI port.
I've changed fr.dyade.aaa.jndi2.server.JndiServer in a3servers.xml to
<service class="fr.dyade.aaa.jndi2.server.JndiServer" args="16425"/>
In the code I changed the value like this
if (KEY.equals(JNDI_PORT)) {
return ("16425");
}
I am able to change ANY other port (db,mqserver) without any issue, this one fails
INFO: HSQL Database Engine 1.8.0 started.
AgentServer#0 started: OK
Jul 8, 2008 1:19:10 PM de.mendelson.comm.as2.jms.MessageQueueServer startup
INFO: Message queue server is started at localhost.
javax.naming.NamingException: Connection refused [Root exception is java.net.ConnectException: Connection refused]
at fr.dyade.aaa.jndi2.client.SimpleNamingConnection.open(SimpleNamingConnection.java:157)
at fr.dyade.aaa.jndi2.client.SimpleNamingConnection.invoke(SimpleNamingConnection.java:122)
at fr.dyade.aaa.jndi2.client.NamingContextImpl.rebind(NamingContextImpl.java:88)
at javax.naming.InitialContext.rebind(InitialContext.java:408)
at de.mendelson.comm.as2.jms.MessageQueueServer.setupQueue(MessageQueueServer.java:138)
at de.mendelson.comm.as2.server.AS2Server.startJMSServer(AS2Server.java:135)
at de.mendelson.comm.as2.server.AS2Server.(AS2Server.java:89)
at de.mendelson.comm.as2.AS2.main(AS2.java:90)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at fr.dyade.aaa.util.SocketFactory14.createSocket(SocketFactory14.java:67)
at fr.dyade.aaa.jndi2.client.SimpleNamingConnection.open(SimpleNamingConnection.java:151)
... 7 more
Is there some place else I need to change this too?