Beispiel #1
0
    public static void BRDCST_TOUPPER(TPSVCINFO rqst)
    {
        ByteBuffer message = StringUtils.NewStringBuffer("Forwarding request to service TOUPPER");

        try
        {
            ATMI.tpbroadcast(null, null, "sample", message, 0, 0);
        }
        finally
        {
            ATMI.tpfree(message);
        }

        ATMI.tpforward("TOUPPER", rqst.data, rqst.len, 0);
    }
Beispiel #2
0
    public static void NOTIFY_TOUPPER(TPSVCINFO rqst)
    {
        ByteBuffer message = StringUtils.NewStringBuffer("Your request is forwarded to the TOUPPER service");

        try
        {
            ATMI.tpnotify(rqst.cltid, message, 0, 0);
        }
        finally
        {
            ATMI.tpfree(message);
        }

        ATMI.tpforward("TOUPPER", rqst.data, rqst.len, 0);
    }