Class IMSSender

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasPhysicalDestination, IConfigurable, ICorrelatedSender, IScopeProvider, ISender, ISenderWithParameters, IWithParameters, IXAEnabled, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

public class IMSSender extends MQSender
JMS sender which will add an IMS header to the message and call the MQ specific logic.

See JmsSender for configuration

Author:
Ricardo van Holst
  • Constructor Details

    • IMSSender

      public IMSSender()
  • Method Details

    • setTransactionCode

      public void setTransactionCode(String transactionCode)
      The transaction code that should be added in the header, must be 8 characters
    • getTransactionCode

      public String getTransactionCode()
    • configure

      public void configure() throws ConfigurationException
      Description copied from class: JmsSender
      Configures the sender
      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class JmsSender
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • createMessage

      @Nonnull public jakarta.jms.Message createMessage(jakarta.jms.Session session, String correlationID, Message message, JMSFacade.MessageClass messageClass) throws jakarta.jms.JMSException
      Overrides:
      createMessage in class JMSFacade
      Throws:
      jakarta.jms.JMSException
    • extractMessage

      public Message extractMessage(jakarta.jms.Message rawMessage, Map<String,Object> context, boolean soap, String soapHeaderSessionKey, SoapWrapper soapWrapper) throws jakarta.jms.JMSException, IOException
      Description copied from class: JMSFacade
      Extracts string from message obtained from getRawMessage(Map). May also extract other parameters from the message and put those in the threadContext.

      Supports only TextMessages and BytesMessage.

      Overrides:
      extractMessage in class JMSFacade
      Throws:
      jakarta.jms.JMSException
      IOException