File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Web File Reader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Web File Reader" Watch "Web File Reader" New topic

Web File Reader

Jason Talarczyk

Joined: Apr 30, 2004
Posts: 4
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

Joined: Oct 17, 2001
Posts: 153
try creating a soap service... you can send pdf as soap attachments.


Shailesh Kini.
I agree. Here's the link:
subject: Web File Reader
It's not a secret anymore!