7.14.2 Creating CJMSP Broker

Create CJMSP Broker by executing the cjmsbroker command.

To create CJMSP Broker

  1. Execute the cd command to move the current directory to another directory.
    In Windows
    Cosminexus-installation-directory\CC\cjmsp\bin
    In UNIX
    /opt/Cosminexus/CC/cjmsp/bin
  2. Execute the cjmsbroker command.
    To execute the command, specify the name of CJMSP Broker in the -name option.
    Example of execution (when CJMSP Broker is created by specifying the name 'MyBroker')
    cjmsbroker -name MyBroker
  3. Execute the cjmsicmd shutdown bkr command.
    The created CJMSP Broker stops. This is in order to set up the individual CJMSP Broker properties hereafter.
    Example of execution
    cjmsicmd shutdown bkr

When you execute cjmsbroker in step 2, a directory is created with the name ('MyBroker' in the example of execution) specified under instances in the var directory. If no name is specified, the default CJMSP Broker starts up.

Note that you specify the storage location of the var directory with the -varhome option of the cjmsbroker command.

Note
When you specify the directory with the -varhome option, specify the same value in the -varhome option when CJMSP Broker is started the second and subsequent times as well.
If you do not specify the -varhome option or specify a different location when CJMSP Broker is started the second and subsequent times, new instances are created beneath the specified var directory or the default directory even if you specify the same name in the -name option.