We have an application running on weblogic server 11g. We have a clustered environment and use an external loadbalancer. There is a requirement where we had to enable the listen port of the server only after the application (web) is ready to service requests. Does anyone know of a way to programmatically enable the listening port of the server?

Note: We were able to programmatically change the server state from 'ADMIN' <=> 'RUNNING' mode.