aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Web File Reader" Watch "Web File Reader" New topic
Author

Web File Reader

Jason Talarczyk
Greenhorn

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.

cheers
skini


Shailesh Kini.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web File Reader