7.8.1 Connection services

The connection service is used to manage the CJMSP Broker and CJMSP resource adapter connection on the TCP layers (jms connection), and the CJMSP Broker and system management user connection (admin connection).

Organization of this subsection
(1) Types of connection services
(2) Managing the thread pool of the connection service

(1) Types of connection services

The connection services provided by Cosminexus JMS Provider include the following two types:

The connection service uses a dedicated port that is statically or dynamically allocated by the port mapper.

The following figure provides an overview of the allocation of ports to the connection service by the port mapper.

Figure 7-10 Overview of the allocation of ports to the connection service

[Figure]

The port mapper uses the 7676 port by default. To use other ports, specify the value in the imq.portmapper.port property of CJMSP Broker.

The flow of port allocation is as follows:

  1. A request is sent from the CJMSP resource adapter to the port mapper to establish a connection in the jms service, or from the management user to the port mapper to establish a connection in the admin service.
  2. The port mapper dynamically allocates the port for the connection service request. However, if the imq.jms.tcp.port property or imq.admin.tcp.port property is specified as the CJMSP Broker property beforehand, the specified port is allocated to each connection service.

Note that if the port mapper receives multiple connection requests simultaneously, the pending requests are stored in the OS backlog and stand by.

For details on the properties used with the connection service, see 7.4 config.property (CJMSP Broker Property File) in the uCosminexus Application Server Definition Reference Guide.

(2) Managing the thread pool of the connection service

A connection service is operated with multithreads, enabling the management of multiple connections concurrently. The threads used with the connection service are managed using the thread pool managed by CJMSP Broker.

Note that the connection service thread pool is managed using independent methods in order to improve the processing performance. Two threads, for message receiving and for sending, are used with one connection.