I must write files in my application. I read that file access in ejb's is forbidden, so i wrote a MBean which writes the files if it's methods are called. This methods are called by my ejb's. Is that allowed? If not, what can I do to write files?
IMO, the idea that EJBs can't access files, do general I/O, or even threading, is *REALLY* silly. If you are an advanced developer there's no reason you need to be treated with kid gloves.
But, if you want to be an orthodox spec fanatic, then what you're doing is fine.