We're migrating this from WAS 5 to WAS 7 and we're stumped as to why this is now causing a problem. The executeQuery() line is throwing a SQLException saying that it's not returning a ResultSet. Does anyone know what has changed over the course of WAS's life that's not allowing this to work anymore? Is this a JDBC upgrade, or JRE thing?? I've googled around, but I'm really not sure what I should be searching for, so my searches have been unfruitful.
query = "insert into ST_Users ";
query += "(ST_U_First_Name, ST_U_Middle_Name,
ST_U_Last_Name, ST_U_Facility_Name,
ST_U_Last_Trans_ID, ST_U_Last_Trans_Time) ";
query += "values (?,?,?,?,?,?)";
query += ";select SCOPE_IDENTITY() as UserId";
pStmt = tokenConn.prepareStatement(query);
pStmt.setString(1, user.getFirstName());
pStmt.setString(2, user.getMiddleName());
pStmt.setString(3, user.getLastName());
pStmt.setString(4, user.getFacilityName());
pStmt.setString(5, sysId.getSystemId());
pStmt.setDate(6, new java.sql.Date(Calendar.getInstance()
.getTime().getTime()));
resultSet = pStmt.executeQuery();
TIA