My servlet have code like this
BufferedReader in = new BufferedReader( new FileReader( objIDpath ) );
ref = in.readLine();
it seems when I call the servlet many times , the tomcat will get a "bad file descriptor" error , but if I add the
in.close();
it will run fine. must I close it ? and how can I set the tomcat to avoid it?
BufferedReader in = new BufferedReader( new FileReader( objIDpath ) );
ref = in.readLine();
it seems when I call the servlet many times , the tomcat will get a "bad file descriptor" error , but if I add the
in.close();
it will run fine. must I close it ? and how can I set the tomcat to avoid it?