aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes PAGING EJB's and jsp - Urgent help Needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "PAGING EJB Watch "PAGING EJB New topic
Author

PAGING EJB's and jsp - Urgent help Needed

sunilkumar ssuparasmul
Ranch Hand

Joined: Dec 13, 2000
Posts: 142
Hai Everybody,
i am doing paging using stateful Ejb by maintaing the resultset state in
stateful session bean.
The problem i have is since resultset is not serializable , when
ejbPassivates i will have to explicitly set it to null and in ejbActivate i
will have to rewrite the code to get back the resultset.
Is there any other way of doing it.
one alternative is to covert the resultset into serializable object and to
preserve the serializable objects state rather than resultset.
Can u suggest me any other best approach to do paging using jsp and Ejb's
please reply as early as possible


"Winners don't do different things<br /> They do things differently"
Kunal Aher
Greenhorn

Joined: Apr 07, 2000
Posts: 20
Hi ,
Will u please have a look at CachedRowSets ?? ur problem regarding serializing a resultset will be solved by using cachedrowsets .
See ..
http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html


Kunal
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: PAGING EJB's and jsp - Urgent help Needed