Sun has made available an early access release of a CachedRowSet class
which is an implementation of the Rowset interface which is part of
the JDBC 2.0 Standard Extension API. I've seen the CachedRowSet
mentioned once on this list, but, I haven't seen much discussion.
The web page at http://developer.java.sun.com/developer/earlyAccess/crs
describes the CachedRowSet as a "disconnected, serializable,
scrollable container for tabular data" that can be "passed between
different components of a distributed application, such as Enterprise
JavaBeans(TM) components."
The CachedRowSet is a lot like a disconnected ResultSet. A client
invokes a method on an EJB Session Bean which then creates and
populates a CachedRowSet from a ResultSet. The serializable
CachedRowSet is passed back to the client where any number of rows of
data are inserted, deleted or modified. The client then sends the
CachedRowSet back to the server where an optimistic concurrency
algorigthm resolves the modifications against some persistent storage.
Do you consider this a valid part of an application architected
around EJB?
Perhaps it is a valid approach for an application domain that
benefits by using Session Beans only?
This use of the CachedRowSet sounds similar to "View Objects" in
Oracle's JDeveloper 3.0 (see white paper at
http://technet.oracle.com/product/tools/appjava/info/techwp20/wp.html,
note: you'll need to get a free Oracle Technology Network
Username/Password... sorry about that.) The white paper describes
View Objects as fully-scrollable, fully-updateable, serializable
rowsets that can be used just as I have described the CachedRowSet
usage above. Warning: the white paper takes some serious jabs at
Entity Beans.
I haven't seen any commercial implementations of the CachedRowSet
available and I haven't heard of any plans to produce one from several
JDBC vendors that I have contacted.
I hope to hear what everyone thinks of the CachedRowSet.
-mike-
Principal Software Engineer
Riverton Software
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".