This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "reading from nsf files" Watch "reading from nsf files" New topic
Author

reading from nsf files

S.L.Narayanan
Ranch Hand

Joined: Apr 01, 2005
Posts: 431
ranchers

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.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, NEXT--->IBM XML
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
Sheriff

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 NCSO.cab 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
sscce.org
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).
http://www-128.ibm.com/developerworks/lotus/library/ls-Java_access_2/index.html
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: http://www-128.ibm.com/developerworks/lotus/library/app-dxl/index.html
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: http://aspose.com/file-tools
 
subject: reading from nsf files
 
Similar Threads
Package for Lotus Domino server
How to launch a specified nsf in lotus notes by using javascript
.nsf
disturbing ( to me )
lotus notes api - windows domain