Monday, November 23, 2015

Creating Routes between two EMS servers


Below sample example will show you how to create routing between two EMS servers.

Step -1 : First install the EMS server and navigate to EMS root folder(i.e. c:\tibco\ems) and make a copy of bin and name it as bin2 as below.

c:\tibco\ems\bin
c:\tibco\ems\bin2

Step -2 : Open tibemsd.conf file under c:\tibco\ems\bin folder and change the following settings.

  • Change server name from EMS-SERVER to EMS-SERVERA
  • enable routing property
  • save and exit

  • Step -3 : Open tibemsd.conf file under c:\tibco\ems\bin2 folder and change the following settings.

  • Change server name from EMS-SERVER to EMS-SERVERB
  • Change port from tcp://7222 to tcp://7224
  • enable routing property
  • save and exit

  • Step -4 : Open factories.conf file under c:\tibco\ems\bin2 folder and change the following settings.

  • Chnage the GenericConnectionFactory, QueueConnectionFactory and TopicConnectionFactory URL to tcp://7224 instead of tcp://7222

  • Step -5 : Start the EMS-SERVERA using Command prompt as below.

    c:\tibco\ems\bin\tibemsd.exe -config tibemsd.conf

    Step -6 : Login to EMS Admin tool on EMS-SERVERA using admin credentials.

    Type 'help' for commands help, 'exit' to exit:
    > c tcp://localhost:7222
    Login name (admin): admin
    Password:
    Connected to: tcp://localhost:7222
    tcp://localhost:7222>

    Step -7 : Create route on EMS-SERVERA as follows:

    tcp://localhost:7222> create route EMS-SERVERB url=tcp://localhost:7224

    Step -8 : Start the EMS-SERVERB using Command prompt as below:

    c:\tibco\ems\bin2\tibemsd.exe -config tibemsd.conf

    Step -9 : You can see route established between two servers by executing below command in admin console in either of the servers.

    tcp://localhost:7222> show routes

    Step -10 : create global queue/topic on both the servers and make sure that names are match.

  • In EMS-SERVERA
  •     tcp://localhost:7222> create queue RouteQueue global
  • In EMS-SERVERB
  •     tcp://localhost:7224> create queue RouteQueue@EMS-SERVERA global

    Step -11 : Finally test this through sample BW application.


    Please leave a comment if it really helps you.

    No comments:

    Post a Comment

    back to top