Hi Ankit,
The ID returned by the call to OFS.POST.MESSAGE is not the ID you can
read directly from the F.OFS.RESPONSE.QUEUE. Usually a ".1" is
appended to the ID and is written to the response queue

The following example should help

Y.OFS.MSG = "Blah blah blah"
Y.OFS.SOURCE = "ONLINE"
CALL OFS.POST.MESSAGE(Y.OFS.MSG,Y.OFS.MSG.KEY,Y.OFS.SRC,"")

Suppose the key returned is
Y.OFS.MSG.KEY             : 155240020360380.00


A list on F.OFS.MESSAGE.QUEUE gives the following result:

LIST F.OFS.MESSAGE.QUEUE
@ID.......

155240020360380.00-ONLINE

 1 Records Listed


Once the record is processed by the OFS.MESSAGE.SERVICE, a list on
F.OFS.RESPONSE.QUEUE gives you the ID of the record which contains the
response. But as you can see, it is not the same as returned by
OFS.POST.MESSAGE

LIST F.OFS.RESPONSE.QUEUE WITH @ID LIKE 155240020360380.00...
@ID.......

155240020360380.00.1

 1 Records Listed


I hope it helps.

Cheers
Pratosh

On Jul 1, 6:56 pm, ankit <[email protected]> wrote:
> Hi All,
>
> I am posting transaction from a main line program that runs as a
> service every 60 seconds using OFS.POST.MESSAGE.
>
> Syntax:
> CALL
> OFS.POST.MESSAGE(OFS.MSG,OFS.MSG.ID,'GENERIC.OFS.PROCESS',OPTIONS)
>
> My problem is that, after I call OFS.POST.MESSAGE. I can't read the
> record from file
> OFS.RESPONSE.QUEUE using the id returned in OFS.MSG.ID. The record is
> somehow deleted. I want to read the record to check if the transaction
> went through or not.
>
> NOTE that the OFS.RESPONSE.QUEUE  service is not set to purge the
> records from the queue.
>
> Any help would be appreciated.
>
> Ankit Patel.

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to