JMS Consumer
Supported pipeline types:
|
When you configure a JMS Consumer, you configure the connection information and the JMS destination name. You can optionally specify the JMS destination type, JMS credentials, and remove control characters.
You can define a JMS message selector to specify the messages that the origin reads. By default, JMS Consumer reads all messages. And you can configure any additional JMS configuration properties that you require.
Installing JMS Drivers
Before you use the JMS Consumer, install the JMS drivers for the implementation that you are using.
For example, to use the Oracle version of JMS,
you need to install the Oracle JMS drivers: wljmsclient.jar
and
wlclient.jar
. Or to use the ActiveMQ version, install all the
ActiveMQ jars: activemq-all-*.jar.
Additional JMS Properties
You can add custom JMS configuration properties to the JMS Consumer.
When you add the JMS configuration property, enter the exact property name and the value. The JMS Consumer does not validate the property names or values.
Working with TIBCO EMS
- java.naming.security.principal = <username>
- java.naming.security.credentials = <password>
Configuring for TIBCO and SSL
- com.tibco.tibjms.naming.security_protocol = ssl
- com.tibco.tibjms.naming.ssl_enable_verify_host = false
- com.tibco.tibjms.naming.ssl_expected_hostname = <tibco _server_hostname>
- com.tibco.tibjms.naming.ssl_identity = <path_to>/server-cert.p12
- com.tibco.tibjms.naming.ssl_password = <password>
- com.tibco.tibjms.naming.ssl_trusted_certs = <path_to>/cert_chain.pem
-
com.tibco.tibjms.naming.ssl_vendor = j2se-default
For example:
- com.tibco.tibjms.naming.security_protocol = ssl
- com.tibco.tibjms.naming.ssl_enable_verify_host = false
- com.tibco.tibjms.naming.ssl_expected_hostname = server1
- com.tibco.tibjms.naming.ssl_identity = /tibco/ems/certs/server-cert.p12
- com.tibco.tibjms.naming.ssl_password = password
- com.tibco.tibjms.naming.ssl_trusted_certs = /tibco/ems/certs/cert_chain.pem
-
com.tibco.tibjms.naming.ssl_vendor = j2se-default
Data Formats
The JMS Consumer origin processes data differently based on the data format. JMS Consumer can process the following types of data:
- Avro
- Generates a record for every message. Includes a
precision
andscale
field attribute for each Decimal field. - Binary
- Generates a record with a single byte array field at the root of the record.
- Delimited
- Generates a record for each delimited line. You can use the
following delimited format types:
- Default CSV - File that includes comma-separated values. Ignores empty lines in the file.
- RFC4180 CSV - Comma-separated file that strictly follows RFC4180 guidelines.
- MS Excel CSV - Microsoft Excel comma-separated file.
- MySQL CSV - MySQL comma-separated file.
- Tab-Separated Values - File that includes tab-separated values.
- PostgreSQL CSV - PostgreSQL comma-separated file.
- PostgreSQL Text - PostgreSQL text file.
- Custom - File that uses user-defined delimiter, escape, and quote characters.
- Multi Character Delimited - File that uses multiple user-defined characters to delimit fields and lines, and single user-defined escape and quote characters.
- JSON
- Generates a record for each JSON object. You can process JSON files that include multiple JSON objects or a single JSON array.
- Log
- Generates a record for every log line.
- Protobuf
- Generates a record for every protobuf message. By default, the origin assumes messages contain multiple protobuf messages.
- SDC Record
- Generates a record for every record. Use to process records generated by a Data Collector pipeline using the SDC Record data format.
- Text
- Generates a record for each line of text or for each section of text based on a custom delimiter. Reads text data of the BytesMessage format.
- XML
- Generates records based on a user-defined delimiter element. Use an XML element directly under the root element or define a simplified XPath expression. If you do not define a delimiter element, the origin treats the XML file as a single record.
Configuring a JMS Consumer Origin
Configure a JMS Consumer origin to read JMS messages.