7.13 Flow of execution environment setup

This section describes the flow of the execution environment setup when Cosminexus JMS Provider is used.

Use the management portal (Management Server) in advance to set up the execution environment of the J2EE applications that send and receive messages. For details on the procedure of setting up the J2EE application execution environment, see 3. Setting Up and Deleting a System for Executing J2EE applications in the uCosminexus Application Server Management Portal User Guide.

Note that CJMSP Broker is not managed by Management Server. Therefore, set up and operate CJMSP Broker using commands and definition files.

Hint
For the use cases of Cosminexus JMS Provider, see Appendix E. Use Cases for Cosminexus JMS Provider.

The following figure shows the flow of the execution environment setup.

Figure 7-13 Flow of the execution environment setup

[Figure]

The following points describe the flow of operations. The numbers in the description correspond to the numbers in the figure.

  1. To prepare the prerequisite environment, install and initialize Application Server.
    To set up CJMSP Broker and the J2EE server on different computers, install Application Server on each computer.
    For details on Application Server installation and initialization, see 2.2.1 Installing Application Server in the uCosminexus Application Server System Setup and Operation Guide.
  2. Set up the common properties and the management command properties of CJMSP Broker.
    Set up the common properties for all CJMSP Brokers created in the same computer. Also, set up the properties related to the output of the management command log. For details on how to specify the settings, see 7.14.1 Setting up the common properties and the management command properties of CJMSP Broker.
  3. Create CJMSP Broker.
    For details on how to create CJMSP Broker, see 7.14.2 Creating CJMSP Broker.
  4. Set up the individual properties of CJMSP Brokers.
    Set up the individual properties for each CJMSP Broker. For details on how to specify the settings, see 7.14.3 Setting up the individual properties of CJMSP Brokers.
  5. Start CJMSP Broker.
    For details on how to start CJMSP Broker, see 7.14.4 Starting CJMSP Broker.
  6. Create a destination for each CJMSP Broker.
    For details on how to create a destination, see 7.14.5 Creating destinations.
  7. Set up and start the CJMSP resource adapter.
    Use the HITACHI Connector Property file to set up the attributes for the CJMSP resource adapter.
    After you set up the attributes, start the CJMSP resource adapter.
    For details on how to set up and start the CJMSP resource adapter, see 7.15 CJMSP resource adapter settings.
  8. Set up and start J2EE applications.
    Import each producer and consumer J2EE application and set up the attributes. Note that you use the DD, cosminexus.xml, or MessageDrivenBean property file to set the attributes for the Message-driven Beans of the consumer J2EE applications.
    For details on how to set up and start J2EE applications, see 7.16 J2EE application settings.
    Hint
    The files related to Cosminexus JMS Provider are stored in the following directory during installation:
    • In Windows
      Cosminexus-installation-directory\CC\cjmsp
    • In UNIX
      /opt/Cosminexus/CC/cjmsp
Note
Before you start the CJMSP resource adapter, CJMSP Broker must be running. If CJMSP Broker is stopped while the CJMSP resource adapter is starting, the CJMSP resource adapter tries reconnecting to CJMSP Broker every 120 seconds.