Wednesday, February 19, 2014

AIF Queue Processing

Hi,

Here is the code to process the Inbound and Outbound requests from Queue..

InBound :-
static void ProcessInbound_Request(Args _args)
{
    ;
    // read the messages
    new AifGateWayReceiveService().run();

    // process the messages in queue
    new AifInboundProcessingService().run();

    info("done");
}

OutBound :-
static void ProcessOutbound_Request(Args _args)
{
    ;
    // process messages in queue
    new AifOutboundProcessingService().run();

    // send messages
    new AifGateWaySendService().run();

    info("done");
}

No comments:

Post a Comment