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 NMSConvertMethods
| Improve this Doc View SourceFromXmlMessage(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 | 
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. | 
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 | 
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 |