Fuego.Msg : DynamicJMS

The DynamicJMS component sends and receives messages to and from a JMS (Java Message Service ) provider.

The DynamicJMS component uses an External Resource configuration of type JMS Messaging Service to connect to the JMS provider. Refer to the Oracle BPM Studio User Guide for details on External Resources.

Example 1: Sending a Text Message to a JMS Queue

externalResourceId = "example_jms_queue"
msgBody = "This is a text message"
sendTextMessage(DynamicJMS,
	configuration : externalResourceId,
	messageText : msgBody, properties : null)

Example 2: Sending a Text Message Using the JmsMessage Component.

externalResourceId = "example_jms_queue"
msgBody = "This is a text message"

jmsMsg as JmsMessage = JmsMessage(type : JmsMessageType.TEXT)
jmsMsg.textValue = msgBody
jmsMsg.expiration = 'now' + '5m' // expires in 5 minutes
sendMessage(DynamicJMS,
            configuration : externalResourceId,
            message : jmsMsg)      
    
Related reference
Fuego.Msg : JmsMessage