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.

Hey, i agree with you on *this* one Joe :))

There is a place for everything.... It seems that IT folks often have some
kind of "tunnel" vision, where one technique or solution is good for all.
Especially if it's new and cool.

----------------------------------------
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 stuff
here, instead of gluing a webfront end on code not written to be web
callable.

You're getting nasty. Browser-based applications can be stateful or
stateless. To denigrate stateful applications as being "glued on" is a
slashdot attitude, not a productive comment.


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 :)

Here's a simple example. The user requests an ad hoc query over a
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.


_________________________________________________________________
Probeer Live Search: de zoekmachine van de makers van MSN!
http://www.live.com/?searchOnly=true

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.