Hermes vs Oracle AQ
- Need a wrapped connect factory, see here. And package it into a jar, like oracleaq-factory.jar
- How to in Hermes:
- add a new provider including those jars: aqapi.jar, jms.jar, jta.jar, ojdbc.jar and oracleaq-factory.jar
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>
- 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).