>>> Sushil Singh <[EMAIL PROTECTED]> 02-Nov-00 3:20:32 AM >>>

>Can anybody help in understanding how to cache an
>object, lets say I would like to cache a resultset, how
>can I do?

Yes... caching objects is very complex.

Here's how it's done:

  .
  .
  .

  ResultSet resultSet;

  public void someMethod(String query)
  {
      //create ResultSet...
      ResultSet rs=...
      //cache the ResultSet
      resultSet=rs;
  }

  .
  .
  .



Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to