10 Starting and Stopping Processing and Signaling Servers

This chapter describes how to start and stop Processing and Signaling Servers.

Starting a Processing Server or a Signaling Server

After you add a server to a domain, you can start the server. If a domain contains several servers, you need to start each server individually.

To start a Processing Server or a Signaling Server:

  1. Log in to the physical server where your server software is installed.

  2. Change the directory to:

    Oracle_home/ocsb62/managed_server

    Oracle_home is the Oracle home directory you defined when you installed the product.

  3. Enter:

    ./start.sh Server Domain_URI

    • Server is the server name given when you configured your domain.

    • Domain_URI is the URI to the domain configuration. Always include initial.zip

      If your domain configuration is accessed using the Domain Web server, use the scheme http:// or https:// depending on the security settings.

      If your domain configuration is accessed using a shared file system, use the scheme file://.

    The following is an example of how the domain configuration is accessed using the Domain Web server:

    ./start.sh proc_srv_1 https://somewebserver.com:9000/initial.zip

    The following is an example of how the domain configuration is accessed using a shared file system:

    ./start.sh proc_srv_1 file://some_directory/mydomain/initial.zip

    In both cases the name of the server is proc_srv_1.

  4. If you are using HTTPS, you are prompted for the keystore password.

Stopping a Processing Server or a Signaling Server

To stop a server, you can use one of the following methods:

Stopping a Server with Java MBeans

Using ManagementAgentMBean, you can stop a server.

To stop a server:

  • Invoke the following operation of ManagementAgentMBean:

    void shutdown()
    

    See "ManagementAgentMBean" for more information about this MBean.

Stopping a Server with the Scripting Engine

You can use the Scripting Engine to invoke the shutdown() operation of ManagementAgentMBean that stops a specified server.

Example 10-1 shows a sample code that stops a server.

Example 10-1 Example Script for Stopping a Server

<player host="localhost" port="10003" registryPort="10103">
  <mbean name="oracle:type=oracle.axia.api.management.agent.ManagementAgentMBean">
    <operation name="shutdown"/>
  </mbean>
</player>

See "Using the Scripting Engine to Configure a Domain" for more information on the Scripting Engine.