I think that file creation (and probably also file read) is forbidden as-is in EJB, servlets and most J2EE components
however you may create a .RAR with a "TempFileFactory" and a "TempFileConnection"... this JCA component may even already exists... I've never played with .RAR and JCA but it seems not to be high level wizardry... > -----Message d'origine----- > De: Tim Sheridan [mailto:[EMAIL PROTECTED]] > Date: mercredi 13 f�vrier 2002 15:40 > �: '[EMAIL PROTECTED]' > Objet: [JBoss-user] JBoss Temp File Problem > > > Has anyone had problems creating temp files inside the > container? Below is > the source code snippet and the resulting message from JBoss > when I attempt > save a file created with the File.createTempFile() method. It > appears that > the JBoss 'bin' folder is prepended to the path I give as a > parameter on > this method. Is the a bug in JBoss or am missing something > like setting a > property? I'm running on Win2K, JBoss 2.4.4 w/Tomcat. > > Thanks, > Tim Sheridan > > Source: > try > { > // create the file > pdfFile = File.createTempFile( "HelloWorld", > ".pdf", new File( > "/temp" ) ); > > // log debugging statement > LOG.debug( pdfFile ); > > // save the pdf > document.savePDF( pdfFile.getAbsolutePath() ); > } > catch( IOException exception ) > { > throw( new CommandException( exception ) ); > } > > JBoss: > [java] [INFO,Default] java.io.FileNotFoundException: > C:\develop\jboss\bin\C:\temp\HelloWorld1360.pdf (The filenam > e, directory name, or volume label syntax is incorrect) > [java] [INFO,ServiceProxy] deleting service proxy > [java] [ERROR,RenderService] BEAN EXCEPTION: > [java] javax.ejb.EJBException: null > [java] Embedded Exception > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
