Can someone clarify which of these scenarios can be done when implementing EJBs and if not which would be the appropriate solution?
- Read Write a File within a EJB method.
- Send via Socket or HtttClient a POST/GET HTTP request and manipulate its response.
- Start threads within a EJB (Asynchrounous requests).
According to the EJB 3.1 Spec
“An enterprise bean must not use the java.io package to attempt to access files and directories in the file system”
Also
“The enterprise bean must not attempt to directly read or write a file descriptor.
Allowing the enterprise bean to read and write file descriptors directly could compromise security.”