Hello ,

I am  new to  Flex world and to this group also.

While going through the BlazeDS Developer Guide (custom adapters). 
I cam across the following snipet.

link : 
http://livedocs.adobe.com/blazeds/1/blazeds_devguide 
                                /help.html?content=messaging_7.html

package customclasspackage; 
{

    import flex.messaging.services.messaging.adapters.MessagingAdapter;
    import flex.messaging.services.MessageService;
    import flex.messaging.messages.Message;
    import flex.messaging.Destination;

    public class SimpleCustomAdapter extends MessagingAdapter {

        public Object invoke(Message message) {
            MessageService msgService = (MessageService)service;
            msgService.pushMessageToClients(message, true);
            msgService.sendPushMessageFromPeer(message, true);
            return null;
        }
    }
}

I am not getting what is  " service "  in the following line of code:

       MessageService msgService = (MessageService)service;

Awaiting for your reply

Thanks and Regards
     Khalid Chaudhary
 

Reply via email to