Configuration of transport services used for a message

Use the following generic methods of the SendMsgCmd command to configure the transport services used for the message:

public void setConfigData(String key, String value)
    
public void setNLConfigData(String key, String language, String value)

These generic methods allow the user to configure the transport services used for the message. The key parameter refers to the administration name used to identify the attribute to be changed. The value parameter is the value to be assigned. Invoking these methods will cause the values specified here to override the values assigned in the Administration Console. The latter method allowing native language sensitive configuration data to be set. Refer to the table below containing the default transports available to the messaging system, and the attributes that apply to each.

Note: String language, represents the LANGUAGE_ID found in the LANGUAGE table. For example, the subject field found in the following table. See the addMember method for an alternative way of setting e-mail recipients. See the API for information about the Messaging class.

The default transports available to the Messaging System contain the following attributes (attribute keys are case sensitive):

Transport Attribute key Description
E-mail adapter subject The subject of the email. You can specify one subject per locale.
recipient The e-mail address of the recipient.
sender The e-mail address of the sender.
host The mail host used to send the message.
protocol The protocol used to connect to the mail host.
port The SMTP port used to send the message. (In most systems this is 25)
retryDuration The time period in which the connection will be retried to a SMTP server.
sendPartial The behavior if there are invalid e-mail addresses for multiple recipients. This value will be true if e-mail is still sent if some e-mail addresses are not valid. The value will be false if e-mail is not sent if there are invalid addresses. Note: This property depends on the SMTP server. It is solely the responsibility of the SMTP server to honor this flag.
contentType The content type, for example text/plain or text/html. The default value is text/plain.
BCC The blind copy field of the e-mail.
CC The carbon copy field of the e-mail.
replyTo The reply to address for the e-mail.
File adapter location The location of the file to be written.
FileName The name of the file to be written.
mode The type of write to perform. 0 - append, or create if the file does not exist 1 - overwrite
Adapter for WebSphere InterChange Server userName The user name used to logon to the WebSphere InterChange Server adapter.
iorFile The location of the .ior file, used to establish the IBM WebSphere InterChange Server adapter connection.
functionName The function name, which includes the WebSphere InterChange Server collaborationName, port, and verb.
Adapter for WebSphere MQ factory The JMS queue connection factory name.
inQueue The inbound queue used for receiving reply messages when the sendReceiveImmediate sending service is used (by some commands).
errorQueue The error queue where the erratic inbound messages are stored.
outQueue The outbound queue where the outbound messages are put.
timeOut The time out value (in seconds) used to wait for an optional reply message from an external system. The default value is 60.
mode The mode of outbound message being handled. The default value is 0, which is outbound only. This should be used with the sendImmediate sending service. If 1 is used, the sendReceiveImmediate sending service is used by the invoking command and the command will wait for a reply message until "timeOut" is reached. Otherwise, the timeOut value will not be used.

Feedback