× 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.



>From the colleague I am trying to help.

Actually, I want to create a CGI program to provide Web Services.  I will
use SOAP and WSDL, since SOAP works with HTTP protocol.  Thus, I can keep
using the current business logic.  What I need to do is just provide a
service.  I define the requirement by WSDL.  How I get it is by SOAP.  I
don't care what platform or what language you are using as Web Services is a
standard. 

However, I have to consider the performance issue.  If thousand user calls
the same program simultaneously, it will be a problem for the system.  I
have considered using socket.  I did learn it from the tutorial provided by
Scott Klement.  Excellent material.   I am thinking about the prestart job.
Prestart job can take care the number of instances.  Let's say, I start  5
instances initially.  If the loading is too high, the system automatically
creates another instance.  Once the workload back to normally, the system
delete the instance.  As we can control the max number of instances, the
system won't be overload.  The job cannot be serviced will be in the queue.
Of course, the design has to consider the response time, it should be very
faster. 

Let's say the program A is to retrieve the stock price.  It will be called
by both CGI program and Green Screen program. 

1000 Internet users and 100 internal users are calling this program for
different stock.  Traditional CALL has to open the file 1100 times and close
it 1100 times.  It is not acceptable.  I need to open the file once and
listen the call to provide the stock price.  You know, in Internet, the
number of users can be much more than we expect.  I cannot let all users
call the program.  I have to control it.  Limit the resource by prestart
job; otherwise, it can take all resources of the system.

\Vincent

 -----Original Message-----
From:   rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of SASchollenberger@xxxxxxxxxxxx
Sent:   November 16, 2005 10:15 AM
To:     RPG programming on the AS400 / iSeries
Cc:     Midrange Systems Technical Discussion
Subject:        Re: Pre-start a program

I use a job schedule entry to start this kind of program.  It is processing
requests from a data queue.
It is shut down when a special entry is placed on the queue.

You could also add an auto-start job entry to one of your subsystems to get
the program running.
----------------------
Scott



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.