Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB and file i/o  RSS feed

 
Andrew Brodie
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since EJB can not access system resouces like file directly.
i.e. File myFile = new File(); is not allowed by EJB spec. How would you use EJB to process interface (inbound & external) data from flat ascii files. (By the way I am open to don't use EJB's as an answer, however the alternative and why is what I would need so I can investigate and prototype the options).
Thanks in advance,
Andrew
 
Jim Baiter
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is to use RMI objects that are registered with JNDI.
This way they can be accessed remotely in the same way EJBs
are by doing a JNDI lookup.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!