Setting Up TIBCO Enterprise Message Service™

You must configure TIBCO EMS™ to publish the records on JMS topics.

    Procedure
  1. Start TIBCO EMS™.
  2. Set the ebx.jms.activate to true in $EBX_HOME/ebx.properties.

  3. Create all the topics in TIBCO EMS™ which are present in $PSC_HOME/bin/install/createtopic.txt. Add the below resource entry in the $TOMCAT_HOME/conf/context.xml of Apache Tomcat.

  4. Configure the following JMS connection factory and topics in context.xml file of Tomcat. This file is present in the tom conf directory of the Tomcat server.

  5. Update the TIBCO EMS™ address in the JMS Connection Factory. This is the TIBCO EMS™ URL where TIBCO EMS™ is running.

    <Resource name="jms/EBX_JMSConnectionFactory" auth="Container"
    type="com.tibco.tibjms.TibjmsConnectionFactory"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tcp://localhost:7222"
    clientID="TibcoPSCEBX">
    </Resource>
    <Resource name="jms/tibco.ac.productmodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.productmodel.topic" />
    <Resource name="jms/tibco.ac.customermodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.customermodel.topic" />
    <Resource name="jms/tibco.ac.segmentmodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.segmentmodel.topic" />
    <Resource name="jms/tibco.ac.planfragmentmodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.planfragmentmodel.topic" />
    <Resource name="jms/tibco.ac.actionmodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.actionmodel.topic" />
    <Resource name="jms/tibco.ac.pricemodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.pricemodel.topic" />
    <Resource name="jms/tibco.ac.discountmodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.discountmodel.topic" />
    <Resource name="jms/tibco.ac.rulemodel.topic" auth="Container"
    type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.rulemodel.topic" />
    <Resource name="jms/tibco.ac.categorymodel.topic"
    auth="Container" type="com.tibco.tibjms.TibjmsTopic"
    factory="com.tibco.tibjms.naming.TibjmsAdministeredObjectFactory"
    address="tibco.ac.categorymodel.topic" />
  6. Copy the jms-2.0.jar and tibjms.jar files from $EMS_HOME/lib directory to the $PSC_HOME/apache-tomcat/lib directory.

  7. If TIBCO EMS™ requires any credentials to access then it can be configured in $PSC_HOME/config/config.properties. You can set the username and password using the following properties.

    com.tibco.psc.jms.topic.connection.username
    com.tibco.psc.jms.topic.connection.password
ResultTIBCO EMS™ is configured.