3 Replies Latest reply on Feb 24, 2005 3:17 AM by starksm64

    Exiting on Port Clash

      Hi,

      If there is a port clash for any service, at the startup of the server, the server throws an exception and carries forward with deploying the other services. We would want the server to exit from starting up, whenever there is a port clash during startup. Is there a way in which we can acheive this? (May be there might be a property like, 'exitOnPortClash' that says this, but we are not sure where we can find it).

      Thanks,
      Kalyan.

        • 1. Re: Exiting on Port Clash
          starksm64

          No, there is no such notion. You would have to write a service that validated the existence of expected ports and shutdown the server on validation failure.

          • 2. Re: Exiting on Port Clash

            Thanks Scott,

            Let's say, the Naming port is in clash and all the other ports are acquirable, the server starts up with an exception on Naming port, but deploys all the beans, creates the connection pools, etc. Now, when I invoke shutdown, I'm not sure if all the connections are released from the pools created. Also, will all the other deployed services be undeployed/released when I do it this way?

            Thanks,
            Kalyan.

            • 3. Re: Exiting on Port Clash
              starksm64

              Shutdown undeploys and shutsdowns all services.