Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
The JMSIn component is used to transfer messages to a JMS topic or queue. Using the Configuration Property Sheet wizard, you can specify the topic or queue on which the message is to be sent. This component retrieves messages from a component and sends them to a JMS topic or queue. Additionally, you can create a Publisher or a Sender on Topic or Queue respectively, and configure the component to publish or send a message on a JMS Server at runtime.
...
Parameters to create the connection can be specified in the input message when this property is set to true. If this property is selected, the validation errors in the managed connection factory Managed Connection Factory panel of the CPS are treated as warnings. So user users can bypass this step without giving valid configuration and complete the configuration of the component. If valid properties are not provided even in the input message, an exception will be thrown at runtime.
...
Note | ||||||
---|---|---|---|---|---|---|
|
...
Figure 6: Interaction Configurations panel in CPS
Note |
---|
For the Expert Properties such as Send message on the output port, Validate Input, Cleanup resources (excluding connection) after each document, Target Namespace, Elements to Decrypt and Elements to encrypt, refer respective sections in Common Configurations page. |
Destination Settings
Destination Configuration
...
Name of the topic/queue to be subscribed to.
Note | |||||||
---|---|---|---|---|---|---|---|
In case of
|
...
|
Destination Type
The JMS type of the destination; either Topic or Queue.
Select one of these destination types:
- Topic: Message can consumed be consumed by a number of clients. Topic represents Public Subscription (Pub/Sub) domain.
- Queue: Message can be consumed by only one client. Queue represents Point to Point (PTP) domain.
...
AutoCreate Destination
Whether a destination needs to be created, if it does not exists.
...
- Map Message
A MapMessage object is used to send a set of name-value pairs. The names are String objects, and the values are primitive data types in the Java programming language. The names must have a value that is not null, and not an empty string. The entries can be accessed sequentially or randomly by name. The order of the entries is undefined. MapMessage inherits from the Message interface and adds a message body that contains a Map. - Byte Message as Base64 encoded Text
Base64 encoding schemes are commonly used when there is a need to encode binary data that needs to be stored and transferred over media that are designed to deal with textual data. This is to ensure that the data remains intact without modification during transport. Base64 is commonly used in a number of applications including email via MIME, and storing complex data in XML. - Text Message
Text message in any of the following formats:- Raw Text
- Plain Text
- XML Text: Selecting this option gives more options to provide a specific XSD Schema.
Figure 10: Text Message option in Message Type Configuration dialog box
Expert Properties
These attributes are meant for advanced users.
Figure 11: Interaction Configurations panel with the Expert Properties view enabled
Send message on the output port
By enabling this property, the message sent to the JMS destination is also sent to the output port of the destination.
Note |
---|
For descriptions of Expert properties given below, please refer the Interaction Configurations section in Common Configurations page:
|
Scheduler Configurations
Please refer section in Common Configurations page.
...
Server connection can be tested from within the CPS by clicking on Test in the Managed Connection Factory panel.
Figure 1112: Sample connection test result indicating success
...
Priority of message - 4
Time to Live - 0
Delivery Mode - Non-persistent
Sample Input
Figure 1213: Sample JMSIn input message
Output
Figure 1314: Sample JMSIn output message
...
When the property Use Connection details from input is chosen, the following input schema with the element ConnectionFactorySettings, is generated. Properties that are used to create the connection are present under this element.
Figure 1415: Input schema with ConnectionFactorySettings
...
Configure the JMSIn as described in Configuration and Testing section and use feeder and display component to send sample input and check the response respectively.
Figure 1516: Demonstrating Scenario 1 with sample input and output
...