5 28 4 SEND

LANSA Integrator

5.28.4 SEND

The SEND command is used to optionally send a file as a message. If no file is specified then an empty message is sent.

To include JMS message properties with the message use the optional working list argument.

The first column is the property type, the second column is the property name and the third column is the property value. Property types are I for integer, B for Boolean, S for string, H for short, L for long, D for decimal, F for float and J for special JMS properties.

The following type J properties use individual method calls on the JMS message object instead of the generic message.setStringProperty, message.setIntProperty and message.setBooleanPropery method calls.

  • JMSTYPE ( message.setJMSType )
  • JMSMESSAGEID ( message.setJMSMessageID )
  • JMSCORRELATIONID ( message.JMSCorrelationID )
  • JMSPRIORITY ( message.setJMSPriority )
  • JMSREDELIVERED ( message.setJMSRedelivered )
  • JMSEXPIRATION ( message.setJSMExpiration )
  • JMSTIMESTAMP ( message.setJMSTimestamp )
  • JMSDELIVERYMODE ( message.setJMSDeliveryMode )
  • JMSREPLYTO ( message.setJMSReplyTo )
  • JMSDESTINATION ( message.setJMSDestination )

 

If the message type is *TEXT then the encoding value is used to convert the file content into a Unicode string and the message will be sent as a JMS TextMessage object.

The message identifier (MessageID) is returned in the JSMMSG field.

 

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

SEND

FILE

value

Optional. File path.

MESSAGE

*BINARY

Message type. JMS BytesMessage.

*TEXT

Default. JMS TextMessage.

ENCODING

value.

Conditional. Used if message type is *TEXT
Default. UTF-8.

ARCHIVE

value

Optional. Archive file.

 

Example

 

SEND MESSAGE(*TEXT) ENCODING(UTF-8) FILE(order.xml) SERVICE_LIST(PRPTYP,PRPNME,PRPVAL)

 

SEND MESSAGE(*BINARY) FILE(order.xls) SERVICE_LIST(PRPTYP,PRPNME,PRPVAL)