This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read files from jboss data folder

 
Harsha Jay
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some files in the data folder and I have a WS which is supposed to read this file and return binary response. Is it a good idea to use FileInputStream and read off the bytes and send back a SOAP response. I have got a early version working this way.

But was wondering if the proper way/design is to use getResourceAsStream using one of the ClassLoaders and I am concerned about multiple reads issues as well.

Appreciate your inputs or any other ideas!

Thanks,
Harsh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic