|
This is the type of thing that happens all the time, and it's the reason
why business applications need stateful connections. The idea that all
things must be stateless is just another myth that needs to go away.
Date: Fri, 6 Jun 2008 09:51:50 -0500
From: joepluta@xxxxxxxxxxxxxxxxx
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Thinking out loud about a new RPG web framework
Thorbjørn Ravn Andersen wrote:
Naturally. I was expecting that we were looking at writing new stuffYou're getting nasty. Browser-based applications can be stateful or
here, instead of gluing a webfront end on code not written to be web
callable.
stateless. To denigrate stateful applications as being "glued on" is a
slashdot attitude, not a productive comment.
Here's a simple example. The user requests an ad hoc query over a
As written above, i do not. I just say that for the java+RPG
combination I believe that best performance requires that you put the
session state on ONE side of the gap that the QZRSVRS connection
imposes. For java using session beans, this means having all the
session state in Java.
To me :)
database with millions of records. (This is truly an ad hoc query - no
index or view exists to satisfy the request.) They want the first 20
records of the set, and then page through 20 at a time.
How do you write this application?
Me, I have a stateful connection to an RPG program that creates an SQL
cursor and then reads the first 20 records. The cursor stays open, and
the next request gets the next 20 records. Response time is as long as
it takes to build the index for the first request, then instantaneous
for subsequent requests.
In your scenario, you must either send the entire contents of the result
set over the wire for the first request, or you must build a new cursor
for each request.
This is the type of thing that happens all the time, and it's the reason
why business applications need stateful connections. The idea that all
things must be stateless is just another myth that needs to go away.
Joe
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.