× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Mark -

Is there identifying information coming back from the vendor? I do things
like that where I have a job that sends unsolicited requests to a vendor and
receive unsolicited responses back. The last response doesn't necessarily
match the last request - it's a credit system where the request could be a
credit application that could take 1 second to 2 days to be decisioned. I
send identifying information in the request and the vendor just echoes that
data back to me with the response. Based on the identifying information, I
route it back to the requesting job (an interactive job). I do this with 1
data queue for requests - all interactive jobs send to the same data queue,
and multiple data queues for responses - each interactive job creates a data
queue for the response. My comm job is essentially a traffic cop - sending
requests to the vendor and receiving the responses.

- Michael

On 9/1/06, mgarton@xxxxxxxxxxxxxxx <mgarton@xxxxxxxxxxxxxxx> wrote:

Scott,

I would like eliminate the dtaq's.  This application is a two step
process.  A store system connects via sockets to our corporate server,
which spawns a server job, JobA.  JobA drops the data in the dataq waits
for a response message on a separate dtaq.  JobB (t,he job discussed in my
previous email) then receives the data from the dtaq, send it to the out
for an approval, the puts the message on the second dtaq for JobA.  So the
best solution would be to combine these two jobs so that the same job
receives connections from our stores and sends the message to the outside
vendor.  This would eliminate some other timing issues that occasionally
cause problems.   However, I am not sure how to do this. I haven't really
use the select( ) statement much.  Is this similar to your multiple client
example in your tutorial?   How would this scale? As you correctly
surmised, this is application handles a high volume of transactions. Would
I just create multiple jobs, each listening on a different port?

Thanks for all your help.  I am very appreciative of the list and the
folks that are willing to help.

Mark Garton



If you could eliminate the data queues and do it all with sockets, then
select() could be used to handle it all in one program.  I suppose you
could have the data queues be read in a separate program in a separate
job, and have it take the data queue data and send it via socket to the
program that communicates with the vendor.  Then that vendor communication

program could sit in select() loop and handle both sockets without delays.



------------------------------



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.