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

reading from nsf files

Ranch Hand

Joined: Apr 01, 2005
Posts: 431

I am again in a problem. My java program needs to read from a nsf (Domino file) which is present in a remote machine. I dont know how to do this. Is there any APIs available to do this. I have the structure of the nsf file with me.

Please help me out.

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
What is the problem ... accessing a remote file or reading the nsf format?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
marc weber

Joined: Aug 31, 2004
Posts: 11343

If you import the lotus.domino package into your java file -- which (assuming you have Notes installed) you should be able to do by adding the location of Notes.jar to your CLASSPATH -- then you should be able to use these classes to represent nsf elements (views, documents, etc.) as Java objects.

In Lotus Domino Designer Help, see the topics "Running a Java Program" and "Accessing databases," both of which are under "Java/CORBA Classes / Java Classes Coding Guidelines."

EDIT: In browsing the above topics, I see that if you're compiling remote calls, then you also need the location of NCSO.jar or in your CLASSPATH.
[ September 28, 2005: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Especially with R6 version you may also store the documents you are interested in as xml files. For a 1 time import this might be an option.
Here is the 2nd part of a 2 parts series about accessing .nsf files with Java via Domino classes (not xml).
Start with first article (there must be link).
The recycle stuff in the 2nd part is no joke. Take that serious or they might phone you 2 weeks later because of memory leak.

For xml:
If its not 1 time import but integration I would not choose xml, but domino java objects (article above). It might be helpfull to find someone who knows how Domino is structured as a Database. Its not relational.
[ September 28, 2005: Message edited by: Axel Janssen ]
I agree. Here's the link:
subject: reading from nsf files
jQuery in Action, 3rd edition