• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this possible from an EAR?

 
A Harry
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an EAR containing a WAR & several EJBs (running on Weblogic 9.2, not sure if that makes any difference though)

From either an EJB or WAR I need to be able to create and read external files. Is this possible?

So, if I created a file from the EJB (with no path) say "abc.txt", where will it be created and how would I read that from the WAR - and vice versa?

thanks in advance
 
Prabaharan Gopalan
Ranch Hand
Posts: 66
Java Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
File IO in EJBs? Could you take a look at this for: Why can't EJBs read and write files and directories in the filesystem? And why can't they access file descriptors? and also this: http://stackoverflow.com/questions/1357667/how-to-access-the-file-system-from-an-ejb-3.

Let us know what you think.
 
A Harry
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
many thanks for that, working my way through it now - I can if I wish do all file I/O from the WAR, is that possible/safe?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic