[Re] OpenJMS does not build correctly
Matt Small <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Its because you are using JDK 1.4 and they have added to the JDBC API
Add the following methods to the nullConnection class and it will compile.
Or go back to JDK 1.3.
// JDK 1.4 CODE Starts here
public void setHoldability() throws java.sql.SQLException {
//This is need to compile under Java 1.4
}
public void setHoldability(int i) throws java.sql.SQLException {
//This is need to compile under Java 1.4
}
public int getHoldability()throws java.sql.SQLException {
//This is need to compile under Java 1.4
return 0;
}
public java.sql.Savepoint setSavepoint()throws java.sql.SQLException
{
//This is need to compile under Java 1.4
return null;
}
public java.sql.Savepoint setSavepoint(String name)throws
java.sql.SQLException {
//This is need to compile under Java 1.4
return null;
}
public void rollback(java.sql.Savepoint savepoint)throws
java.sql.SQLException {
//This is need to compile under Java 1.4
}
public void releaseSavepoint(java.sql.Savepoint savepoint)throws
java.sql.SQLException {
//This is need to compile under Java 1.4
}
public java.sql.Statement createStatement(int resultSetType,int
resultSetConcurrency,int resultSetHoldability)throws java.sql.SQLException {
//This is need to compile under Java 1.4
return null;
}
public java.sql.PreparedStatement prepareStatement(String sql,int
resultSetType,int resultSetConcurrency,int resultSetHoldability)throws
java.sql.SQLException {
//This is need to compile under Java 1.4
return null;
}
public java.sql.CallableStatement prepareCall(String sql,int
resultSetType,int resultSetConcurrency,int resultSetHoldability)throws
java.sql.SQLException {
//This is need to compile under Java 1.4
return null;
}
public java.sql.PreparedStatement prepareStatement(String sql,int
autoGeneratedKeys)throws java.sql.SQLException {
//This is need to compile under Java 1.4
return null;
}
public java.sql.PreparedStatement prepareStatement(String sql,int[]
columnIndexes)throws java.sql.SQLException {
//This is need to compile under Java 1.4
return null;
}
public java.sql.PreparedStatement prepareStatement(String
sql,String[] columnNames)throws java.sql.SQLException {
//This is need to compile under Java 1.4
return null;
}