Persistent Procedure

jrkartha

New Member
Hi All,

I need to trigger a number of XML 's at the same time and need to Process all the responses simultaneously.

As I am new to PROGRESS Development , I haven't a clear Idea about how to do this.

One Option I found is Persisent Procedure.I don't know more about this thing also.

Any one can please help me out .

Thanks in Adavance.
 
Your description of the requirement is way to vague.

What do you mean by "trigger XML"?
How would you receive the response?
What do you mean by process simultaneously?

Heavy Regards, RealHeavyDude.
 
Triggering XMl means doing a http post to the XML request.
I wa trying to do a http post to the XML request. This gives more than one response XMl at a time. I need to parse those XML,s simultaneously.
 
I don't really know what you mean either, but Progress is inherently single-threaded to the core of its being, and given that, I don't see how you can do anything other than perhaps something hugely nasty and artificial. Let's see, if you have 5 chunks of XML to process, you could launch 5 PP's and have each one do 20% of its work then cede control to the next one. A PP would give you the relatively convenient ability to keep track of the state of each process. But obviously that is just plain crazy talk and probably nowhere near what you are really after.
 
Oh, another thought, given 5 chunks of XML to process, you could farm each one out to a separate Progress process, possibly although not necessarily via an AppServer. That would be multi-process and would indeed achieve simultaneous execution. It would have no need for PP's. You could even make it multi-processOR by running each AppServer on its own box. But again, probably the wrong track.
 
Let me see if I understand this correctly:

You do some HTTP post on some IP port and as a response get back several XML documents and you then need to process these XML documents? Why do you need to process them in parallel and not just sequentially in the order you retrieve them? The requirement to process them in parallel would suggest that the content of the XML documents has specific dependencies that can only solved when processed in parallel with a multi-threaded approach. I can't see much sense in such a requirement. Plus there is nothing like for example in Java to synchronize individual processing thread - the only common thing in Progress they could have is a shared persistent storage, for example the database, where you could synchronize the state of the different threads.

Persistent procedures are just a programming technique - if you ask me - that mimics similar behavior like instantiating an object then work with its methods. In that sense they are no solution to a specific design pattern, they are just a means to implement it.

Heavy Regards, RealHeavyDude.
 
Back
Top