Hi
does any one know how to force 9iAS to commit the transactions before exiting the method? the problem in question is that i am using SessionEJB to retrieve and process and store some data using EntityEJB.
now it happens tht while storing the data it throws SQLException which it doesnt throw untill the whole processing is being done
SessionEJBMethod{
while(iterator.hasNext() ){
try{
entityEJB.store();
printed("data saved");
}catch(SQLException e){
print("SQL EXception");
}
}
}//end of SessionMethod
So wht happens tht at a particular record whn it should throw SQLException and print "SQLException" it prints "data saved" and proceed to next record and when the iterator ends it throws the exception which is not caught in SQLException.
Any pointers, suggestions?
would realy appriciate ure help.
Thanks & Regards