A well known constraint is that you should not use java.io
in EJB's to access the file system. I need to create a text file and send it via email when a particular method is invoked in my ejb application.
I need an architectural solution on how to do this without using java.io
.
The only approach I see is to create a separate web service for this job.
Also there was a suggestion to use Apache camel, but I don't know how camel can help to achieve this.