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

KarthikR at 2007-7-6 21:22:48 > top of Java-index,Development Tools,Java Tools...
# 2
You can also ry asking your question at the Java EE SDK forum (Application Server PE is part of Java EE SDK). I think you will get a better answer there. http://forum.java.sun.com/forum.jspa?forumID=136
KSorokin at 2007-7-6 21:22:48 > top of Java-index,Development Tools,Java Tools...