Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web File Reader

 
Jason Talarczyk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web server running an application that needs to access a server that sits inside of my domain. The web server is not currently part of that same domain, nor do I ever see that as happening. What I need to accomplish is the following:

1. Gain access to the databases. I'm assuming that I can just open up the port that the database is running on to give me the access I need.

2. Gain access to a pdf file store that resides on another server inside the domain. The file store is broken down into directories which will contain the necessary files. Essentially I need to retrieve the files that are listed in the directory and the files themselves if needed. This will all need to occur through a jsp web interface.

My thoughts to accomplish 2:

1. Create two databases. One to maintain the requests for the files that exist in a directory and one to actually dump the pdfs into for retrieval. Run a service to continuously poll the request database and populate the other if a request does in fact exist. I can then poll the file database to get the pdf that I need. All requests would be removed upon the deletion of the web session.

2. Use RMI to call a service that is running on the database server to grab the file names in the directory requested and the actual files as a stream if needed.

Any help or suggestions would be greatly appreciated.
Thanks in advance.
 
Shailesh Kini
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try creating a soap service... you can send pdf as soap attachments.

cheers
skini
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic