Creating EMS Queues and Factories

The EMS Queues and factories are the channels provided by the EMS server to enable communication between the client and server.

Note: The non-admin users need Send, Receive, and Browse permissions to access TIBCO Enterprise Message Service queues.

Procedure

  1. Go to TIBCO_HOME/spm/2.3/bin directory.
  2. Make sure that correct EMS_HOME is set in all TRA and configuration files.
  3. Open the setems4spm.scr file for editing.
    Note: If the EMS server and the Service Performance Manager server are on different machines, perform the following steps:

    Open the setems4spm.bat file, and set EMS_HOME=<EMS_HOME location of the local machine>.

  4. If the EMS server and the Service Performance Manager server are set up on different machines, edit SPM_HOME/bin/setspm4ems.scr script file and replace "localhost" with the appropriate IP address of the machine on which the TIBCO EMS server is running. For example:

    instead of

    connect tcp://localhost:7222
    create factory SPMQueueConnectionFactory queue
    url=tcp://localhost:7222

    use

    connect tcp://123.456.789.111:7222
    create factory SPMQueueConnectionFactory queue
    url=tcp://123.456.789.111:7222
  5. Replace //localhost with IP address of the machine on which TIBCO Enterprise Message Service is running in all the property files and startup scripts.

    For example,

    connect tcp://10.97.122.174:7222
    create factory SPMQueueConnectionFactory queue url=tcp://10.97.122.174:7222
  6. Execute the following command to create the required queues and connection factories to be used by the server and client.
    TIBCO_HOME/spm/2.3/bin/setems4spm.bat
  7. Verify that the following queues are created in EMS:
    >>created queue 'spm.inbound.query.queue'
    >>created queue 'spm.ft.queue': exclusive
    >>created queue 'spm.outbound.queue'
    >>created queue 'spm.inbound.queue'
  8. If you want to change the names of the connection factories and queues, make corresponding changes to the Service Performance Manager server, TIBCO ActiveMatrix Dashboard, and sample files.