[jboss-user] [Beginners Corner] - How can I be a good J2EE container citizen while creating fi

tachoknight do-not-reply at jboss.com
Mon Nov 12 10:23:37 EST 2007


Hi everyone-

I am writing an image processing tool that will take input and a file from a web page, process it using my software (sometimes taking many many minutes), and make available another file to the submitter. The end file (typically a jpeg) is then available to the person to bring into another program, etc. 

I was reading in the J2EE container spec that you're not supposed to use java.io.*; inside an EJB (which my program is, basically). Experimenting with JBoss shows that this is still possible...I can create a file using JBossAS, but I want to be a good "J2EE citizen" and do things the right (and presumably more portable) way. 

So what is the "proper" way to handle file reading/creation in a J2EE container? I suppose I can just keep using java.io.* on JBoss, but I'm afraid that someday this will not be possible and I'll have to come up with something else.

Thanks,

Ron



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103731#4103731

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103731



More information about the jboss-user mailing list