This content has been marked as final.
Show 6 replies
-
1. Re: How to read/write to local file system
kenclark Aug 16, 2008 1:46 PM (in response to kenclark)I mean, from within EJB session bean code.
-
2. Re: How to read/write to local file system
skajotde Aug 16, 2008 1:56 PM (in response to kenclark)Plain java ;)
File() with absolutes filesystem paths. You may be supported by system propertiesnew File(System.getProperty("system.booking.drirectory" + File.sep + "xxx");
Remember put all in finally block to ensure close resources. It is server environment.
I know is JCA, nut there is no much sources hot to use it ;) Solution mentione abowe is tested ;) -
3. Re: How to read/write to local file system
skajotde Aug 16, 2008 1:57 PM (in response to kenclark)Property "system.booking.drirectory" should be set in JBoss start script (-Dsystem.booking.directory=/home/booking)
-
4. Re: How to read/write to local file system
skajotde Aug 16, 2008 2:29 PM (in response to kenclark)And there is JCR, example implementation: jackrabbit.apache.org
-
5. Re: How to read/write to local file system
skajotde Aug 16, 2008 2:30 PM (in response to kenclark)
Correct url is http://jackrabbit.apache.org -
6. Re: How to read/write to local file system
sebastianovide Dec 9, 2011 11:30 AM (in response to skajotde)it is not allowed to read/modify files from EJB... ;(