Packagemx.messaging
Classpublic class Producer
Subclasses AsyncRequest

A Producer sends messages to a destination. Producers dispatch a MessageAckEvent or MessageFaultEvent for each message they send depending upon whether the outbound message was sent and processed successfully or not.

MXML SyntaxexpandedHide MXML Syntax

The <mx:Producer> tag inherits all the tag attributes of its superclass, and adds the following tag attributes:

   <mx:Producer
    Properties
    defaultHeaders="No default."
  />
  


Public Properties
 PropertyDefined By
  subtopic : String
Provides access to the subtopic for the remote destination that the MessageAgent uses.
Producer
Public Methods
 MethodDefined By
  
Constructs a Producer.
Producer
Protected Methods
 MethodDefined By
  
internalSend(message:IMessage, waitForClientId:Boolean = true):void
Producer
Property Detail
subtopicproperty
subtopic:String  [read-write]

Provides access to the subtopic for the remote destination that the MessageAgent uses.

This property can be used as the source for data binding.


Implementation
    public function get subtopic():String
    public function set subtopic(value:String):void
Constructor Detail
Producer()Constructor
public function Producer()

Constructs a Producer.


Example
How to use examples
       function sendMessage():void
       {
           var producer:Producer = new Producer();
           producer.destination = "NASDAQ";
           var msg:AsyncMessage = new AsyncMessage();
           msg.headers.operation = "UPDATE";
           msg.body = {"SYMBOL":50.00};
           producer.send(msg);
       }
       
Method Detail
internalSend()method
protected override function internalSend(message:IMessage, waitForClientId:Boolean = true):void

Parameters

message:IMessage
 
waitForClientId:Boolean (default = true)





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/mx/messaging/Producer.html