Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PAGING EJB's and jsp - Urgent help Needed

 
sunilkumar ssuparasmul
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kunal Aher
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic