Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About file access and resource manager.  RSS feed

 
rui lin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,everybody!
We all know it is not allowed to access file one the server hosting the ejb container throug java.io .
But it is said:
Although an enterprise bean must not use the java.io package to attempt to access files and directories in the file
system,components should use a resource manager API(Class.getResourceAsStream() returns a InputStream), such as JDBC,
to store data.

I wonder which resource manager we can use and how to use.
 
rui lin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you please post some example codes?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!