I have the following method in my
EJB method1(){
...
myFileReader.readFile("file Name");
}
In the above code, instead of reading the file in EJB (Which shouldn't be done as the container doesnt guarantee proper behaviour), the operation is delegated to "myFileReader" class readFile() method.
1. Does the container gurantee a proper behaviour in this case since iam not reading any file in EJB ? if yes, i feel iam reading the file indirectly.
2. If i want to read some file in an EJB, whats the best solution ?