UP | HOME

Hermes vs Oracle AQ

  1. Need a wrapped connect factory, see here. And package it into a jar, like oracleaq-factory.jar
  2. How to in Hermes:
    1. add a new provider including those jars: aqapi.jar, jms.jar, jta.jar, ojdbc.jar and oracleaq-factory.jar
    2. create a new session for AQ topic (EABDEMOQUEUE here):

      <?xml version="1.0" encoding="utf-8"?>
            <factory classpathId="OracleAQ">
              <provider className="com.freizl.OracleAQFactory">
                  <properties>
                      <property name="hostName" value="vlinux"/>
                      <property name="password" value="demoq"/>
                      <property name="sid" value="XE"/>
                      <property name="userName" value="demoq"/>
                  </properties>
              </provider>
              <connection clientID="" connectionPerThread="false">
                  <session audit="false" checkSize="false" checkSizePeriod="0" id=" OralceAQ\_Local" reconnects="0" transacted="true" useConsumerForQueueBrowse="false"/>
              </connection>
              <destination domain="2" durable="false" name="EAB\_DEMO\_QUEUE"/>
              <extension className="hermes.ext.DefaultHermesAdminFactory">
                  <properties/>
              </extension>
          </factory>
      
      
  3. Double click the topic under the session, EABDEMOQUEUE here, to

connect to the topic.    Hermes will create a new subscriber for this topic.    And once there’s message push into this topic, it will be display in the Hermes. (not consume, just browser).