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



Aaron B. wrote:
So how does that architecture work for an Internet app where there are going
to be thousands of users? I guess that is where I was going with the idea
of doing threads on the RPG side.

Threading doesn't apply under that architecture. The J2EE application server is running in one job, and the RPG program is in another, and they communicate over a socket. It's similar to the CGI interface running under a named activation group. It wouldn't make sense to add RPG code for serialized access. Job startup costs occur only once, when the connection is first established.

Contrast that architecture with the one where an HTTP Server thread calls an RPG procedure and all the code is running within a single process. I ran into this when I wrote an HTTP server plug-in. In that case you might need to add code to the RPG module to serialize access, because multiple HTTP server threads are calling the same RPG procedure concurrently.

Nathan.

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.