Configuring the IIOP Socket Listener

By default, the IIOP socket listeners is configured to listen on the first IP address resolved for your host name.

To configure Unwired Server to listen on all network interfaces, edit each listener's properties file.
  1. Stop Unwired Server.
  2. On the system where Sybase Unwired Platform is installed, navigate to the <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\Repository\Instance\com\sybase\djc\server\SocketListener directory.
  3. Use a text editor to open the <hostname>_iiop1.properties file.
  4. Locate the line beginning with host=:
    #Instance Properties
    #Mon Feb 22 10:34:27 PST 2010
    maxThreads=200
    port=2000
    host=<your_host_name>
    ant.project=default-socket-listeners
    useSocketChannel=false
    protocol=iiop
  5. Replace your host name with 0.0.0.0:
    #Instance Properties
    #Mon Feb 22 10:34:27 PST 2010
    maxThreads=200
    port=2000
    host=0.0.0.0
    ant.project=default-socket-listeners
    useSocketChannel=false
    protocol=iiop
  6. You may also need to tune the performance of the listener by editing the default maxThreads value. If you change the messaging queue count properties, then you may need to set a new value where the maxThread of iiop socket listener is larger than the sum of all nodes needed iiop thread counts.
    Sybase recommends the following:
    • In a single node environment with a messaging server, use this equation: outbound queue count + 50. This is because each outbound workflow will occupy an IIOP thread, so the maximum thread value must be greater than the number occupied in the outbound queue.
    • In a clustered environment , use this equation for the primary server:(outbound queue count + 50 + ((inbound queue count + outbound queue count + 50) * number of secondary nodes) . In this case, each inbound and outbound workflow on secondary nodes also occupies an IIOP thread on the primary server. So assuming the cluster has multiple secondary node, each primary server has to multiply the value of the inbound and outbound queue to get an sufficiently high value.

      For secondary servers in the cluster, default value is sufficient.

  7. Save and close the properties file.
  8. Restart Unwired Server.
Related concepts
Synchronization Model Performance Tuning
Related tasks
Configuring Unwired Server Performance Properties