|
Thorbjørn Ravn Andersen wrote:I am not getting nasty. My apologies if you are offended - ascribe it to cultural differences from a non-native speaker.
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.
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.Since JDBC 3.0 allows for moving both back and forth in a resultset (this is from memory, so the names may be different) I would use plain SQL over JDBC and put the resultset in the session bean along with a counter stating the current row number so paging is possible. It should be trivially simple, but I'll need to do a quick and dirty test to see if it actually is so :)
How do you write this application?
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.One of the really big problems is when you have multiple places where data must be handled, and there are just tiny tubes between them. The Java world versus the Native world on the AS/400 for instance.
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.