You can change the JNDI port in jboss-service.xml (don't forget to update your client's jndi-properties when you do this).
Hello, Juha Lindfors!
I changed the item in jboss-service.xml to the following:
<!-- The listening port for the bootstrap JNP service. Set this to -1
to run the NamingService without the JNP invoker listening port.
What should I do to update the client's jndi-properties?
The jndi.properties file looks like this:
# Do NOT uncomment this line as it causes in VM calls to go over
That's not the jndi.properties file you should touch. Just make sure the jndi.properties you distribute to your clients contain the correct port number.
Do you mean that what I need to do is change the port in the program? Well, my program has change accordingly as follows:
public static void main(String args)
EventListener obj = new EventListener();
System.out.println("EventListener instantiated: " + obj);
But the problem remains there:
java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
java.net.BindException: Address in use: JVM_Bind