Oops, I sent the file to the wrong address. In any case, what is the best mechanism that I can use to supply a working example of supporting a file system using a database to the project?

Brett M. Bergquist wrote:
Here is the new DbFile.java that does not require a separate View.


Kenneth Vanvik Hansen wrote:
Sounds good, I'll probably have them by tonight then :-) Thank you.

Kenneth

-----Original Message-----
From: Brett Bergquist [mailto:[email protected]] Sent: 21. mars 2010 23:11
To: [email protected]
Subject: Re: LIST from database

I should have them sometime Monday. They are at work and I am at home :) I ended up working all Saturday but not on this :( I extracted the files out to extract on their own and I just want to run a few tests and then I will
have them to post.

Brett

On Mar 21, 2010, at 5:00 PM, Kenneth Vanvik Hansen wrote:

How are you doing with those files?

Kenneth

On 19. mars 2010, at 18.55, "Brett M. Bergquist"
<[email protected]> wrote:
Give me a few hours and I will get the files together and provide them. It turns out, I was not using JPA in the FTP side of things but put a JPA
interface on top of the database side to allow my web application to provide an easy interface to list what was in the storage, delete files, etc. from a Web page. So the code is straight JDBC access that right now is targeted to
a Derby database, but nothing really special used from that.
Kenneth Vanvik Hansen wrote:
Not using JPA at the moment, but i probably could if i wanted to. If you could send me the files it might save me a lot of work. Using an Oracle database, but I could probably make the required changes myself.
Thanks.
Kenneth

[email protected]

-----Original Message-----
From: Brett M. Bergquist [mailto:[email protected]] Sent: 19. mars 2010 16:42
To: [email protected]
Subject: Re: LIST from database

Kenneth are you using JPA or can use JPA? I have this implemented in JPA and I could send you the files but they are not clean in that they reference tables in my database, etc. From the files, you could extract what you need, however. Or probably by Monday, I could have this cleaned up enough to submit back.

Files are stored in the DB as blobs and I have directory/subdirectory, list, put, get, and delete all working using
Derby as my target database.
Kenneth Vanvik Hansen wrote:

Thanks, got it running. Now i'm trying to make it look for files in a
db table called FTPTEST. But no matter what I do it returns:
Java.io.FileNotFoundException: res\home\kenneth (Access is denied)

I created a file from a blob and returned it in getFile(), but how am I
supposed to make it LIST from the db? All I need atm is the ftp showing
files in a single folder. No dir's needed. Anyone got a good idea how to do
this?
Kenneth

-----Original Message-----
From: Niklas Gustavsson [mailto:[email protected]]
Sent: 19. mars 2010 14:43
To: [email protected]
Subject: Re: LIST from database

On Fri, Mar 19, 2010 at 11:42 AM, David Latorre <[email protected]>
wrote:
You should create your own FileSystemFactory  and set it in the
DefaultFtpServerContext like this:
context.setFileSystemManager(filesystemFactory);

Or you can set it on the FtpServerFactory. Or, you can configure it as
a bean in the Spring config.
/niklas









Reply via email to