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).
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
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:
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.
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.