Michael Weller wrote:
> This won't work for sure: java.sql.Connection is an interface, so a class
> can't extend it :)
> > For connection serialization try somwthing like this:
> >
> > public class SerConnection extends Connection implements Serializable {
> > }
You are right! :)
But in principle this problem can be avoided by "perverted" trick:
public class SerConnection extends implements Connection, Serializable {
protected Connection con = null;
// override each methods in Connection like this:
public Statement createStatement(int resultSetType, int
resultSetConcurrency) throws SQLException {
return con.createStatement(resultSetType,resultSetConcurency);
}
// and so on
// .........................
}
___________________________________________________________________________
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