This is a little off-topic.
I am using a ServletContextListener to register my WSDD automatically when the web context is created.
But I have to configure the host:port of the server to be able to register it. As I don“t want to have to inform the host and port number, to avoid problems when deploying the same EAR/WAR at any other app server, I would like to retrieve the port number used at runtime.
I am currently using JBoss 3.2.3.
Does anyone have any idea on how to discover the port number used by JBoss/Tomcat?
Thanks
