Hi,
We have a peculiar problem while running a Search Service.
The different components involved are given below:
Struts Controller->
JSP Page ->
EJB Stateless Session Bean ->
Java Class (DAO)-> Database.
When a user clicks on the 'Search' button, the Search needs to fetch 10,000 records at a time. The request is serviced in the above manner and the resultset is displayed through a JSP Screen. Pagination Logic is built in the query so that it retrieves a partial resultset (ie first 10,000, next 10,000 etc)
However when the user clicks on the 'Next' Button, on the result screen, an Out of Memory Exception is thrown by the Bean. The Heap size is set to maximum. Note there is no SQL Exception occuring, the error occurs when the EJB has to send the resultset to the jsp.
Any Ideas as to why this happens?