java.lang.Object | |
↳ | org.mule.modules.oracle.client.AQClient |
Class containing all Oracle AQ-related operations.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BE_CONNECTION_ERROR | ||||||||||
String | BUSINESS_EVENTS_TOPIC_NAME | The name of the topic that receives Business Events. | |||||||||
String | DRIVER | The Oracle driver to use. | |||||||||
String | QUEUE_OWNER | The Oracle DB user that owns the Business Events topic and XML Gateway Outbound queue. | |||||||||
String | XML_GATEWAY_CONNECTION_ERROR | ||||||||||
String | XML_GATEWAY_OUTBOUND_QUEUE_NAME | The name of the topic that receives XML Gateway Outbound messages. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
factory | The XMLInputFactory used to convert Strings to XML. | ||||||||||
host | The host where the Oracle DB is running. | ||||||||||
logger | Logger for this class. | ||||||||||
loop | Set to true in production, false when testing. | ||||||||||
password | The password to be used to connect to the Oracle DB. | ||||||||||
port | The port where the Oracle DB is listening. | ||||||||||
queueConnection | The connection used to retrieve XML Gateway Outbound messages. | ||||||||||
sid | The name of the database. | ||||||||||
topicConnection | The connection used to retrieve Business Events. | ||||||||||
user | The username to be used to connect to the Oracle DB. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an
AQClient . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subscribes to the
{@value #BUSINESS_EVENTS_TOPIC_NAME} topic and retrieves any business event enqueued to it. | |||||||||||
Closes all open connections and disables looping, so the infinite cycle from subscriptions is cut.
| |||||||||||
Subscribes to the
{@value #XML_GATEWAY_OUTBOUND_QUEUE_NAME} queue and retrieves any messages enqueued to it. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The name of the topic that receives Business Events.
The Oracle driver to use.
The Oracle DB user that owns the Business Events topic and XML Gateway Outbound queue.
The name of the topic that receives XML Gateway Outbound messages.
The XMLInputFactory used to convert Strings to XML.
The host where the Oracle DB is running.
Logger for this class.
Set to true in production, false when testing. This prevents infinite loops when subscribing to queues/topics.
The password to be used to connect to the Oracle DB.
The port where the Oracle DB is listening.
The connection used to retrieve XML Gateway Outbound messages.
The name of the database.
The connection used to retrieve Business Events.
The username to be used to connect to the Oracle DB.
Constructs an AQClient
.
user | The username to be used to connect to the Oracle DB. |
---|---|
password | The password to be used to connect to the Oracle DB. |
host | The host where the Oracle DB is running. |
port | The port where the Oracle DB is listening. |
sid | The name of the database. |
loop | Set to true in production, false when testing. This prevents infinite loops when subscribing to queues/topics. |
Subscribes to the {@value #BUSINESS_EVENTS_TOPIC_NAME}
topic and retrieves any business event enqueued to it.
callback | The SourceCallback callback to call when a business event is retrieved. |
---|
Closes all open connections and disables looping, so the infinite cycle from subscriptions is cut.
xml |
---|
XMLStreamException |
---|
Subscribes to the {@value #XML_GATEWAY_OUTBOUND_QUEUE_NAME}
queue and retrieves any messages enqueued to it.
callback | The SourceCallback callback to call when a messages is retrieved. |
---|