Sun app server ports
Hi-
How can we get the list of server(sun app server) ports programatically? in JRun we have some thing like this -
JRunAdminService jrunAdmin = new JRunAdminService();
int[] myPorts = jrunAdmin.listServerPortsUsed(JRun.getServerName());
Any help would be greately appriciated.
Thanks,
Anand
[334 byte] By [
anandms5] at [2007-11-26 8:19:21]

# 1
I am not sure if there is an API that returns all the ports in use.
But the following URLs provide information on managing appserver programatically and may be of use:
http://developers.sun.com/prodtech/appserver/reference/techart/mgmt_monitoring. html
http://docs.sun.com/source/819-0079/dgmbean.html#wp36104
http://java.sun.com/j2ee/tools/management/
http://java.sun.com/products/JavaManagement/index.jsp