In tutorials, why isn't dataProvider in session scope but RowSet is?

In all the tutorial I have seen that RowSet is mostly in session scope but its associated DataProvider is on the page scope (accessible from the page only). Also, when you drag and drop a Table, Creator adds DataProvider in page and its RowSet in session. Any reasons why? Can you have Table's DP and RS both in session scope? From the "Outline" view, I tried to dragg DP from Page to SessionBean1, but it wouldn't move.

The want to access the DP on a page from a page fragmant. Is there a way to access it without moving it to session scope?

[557 byte] By [Sabir] at [2007-11-26 9:58:40]
# 1

You can cause the data provider to be created in the session bean instead of the page bean. See http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ins erts_updates_deletes.html#03

You might find the info in this blog useful: http://blogs.sun.com/jfbrown/entry/cachedrowsetdataprovider_and_cachedrowset_in fo

jetsons at 2007-7-7 1:24:40 > top of Java-index,Development Tools,Java Tools...