title: Create text file from EJB without java.io
body: <p>A well known constraint is that you should not use <code>java.io</code> 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.</p>
  
  <p>I need an architectural solution on how to do this without <code>using java.io</code>.
  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.</p>