Show / Hide Table of Contents

    Class NMSConvert

    Inheritance
    System.Object
    NMSConvert
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Apache.NMS.Util
    Assembly: Apache.NMS.dll
    Syntax
    public class NMSConvert

    Methods

    | Improve this Doc View Source

    FromXmlMessage(IMessage)

    Convert a text message into an object. The object must be serializable from XML.

    Declaration
    public static object FromXmlMessage(IMessage message)
    Parameters
    Type Name Description
    IMessage message
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    ToAcknowledgementMode(String)

    Convert the acknowledgment mode string into AcknowledgementMode enum.

    Declaration
    public static AcknowledgementMode ToAcknowledgementMode(string ackText)
    Parameters
    Type Name Description
    System.String ackText
    Returns
    Type Description
    AcknowledgementMode

    Equivalent enum value. If unknown string is encounted, it will default to AutoAcknowledge.

    | Improve this Doc View Source

    ToXmlMessage(IMessageProducer, Object)

    Convert an object into a text message. The object must be serializable to XML.

    Declaration
    public static ITextMessage ToXmlMessage(IMessageProducer producer, object obj)
    Parameters
    Type Name Description
    IMessageProducer producer
    System.Object obj
    Returns
    Type Description
    ITextMessage
    | Improve this Doc View Source

    ToXmlMessage(ISession, Object)

    Convert an object into a text message. The object must be serializable to XML.

    Declaration
    public static ITextMessage ToXmlMessage(ISession session, object obj)
    Parameters
    Type Name Description
    ISession session
    System.Object obj
    Returns
    Type Description
    ITextMessage
    • Improve this Doc
    • View Source
    Back to top Copyright © 2005-2022 Apache Software Foundation project
    Generated by DocFX