Tuesday, January 31, 2012

How To: export DXL in Java

We will do few simple steps to allow DXL exporting like this
Let's create simple class for description of database location. We will use it as light database representation
Exporter class itself
Class for run a simple example
Do not forget
You need add to the java class path also few libraries to allow DCL exporter to work:
Good old
Lotus\Notes\jvm\lib\ext\Notes.jar
And
Lotus\Notes\jvm\lib\tools.jar
Lotus\Notes\jvm\lib\ext\websvc.jar

2 comments:

Sanjeev Verma said...

Hi,
I run this application from client machine and it is only exporting the metadata of database not the actual data.

What extra we need to do in order to get the actual data.

Andriy Kuba said...

Hi,

You need to customize NoteCollection accordingly.

I customize it to extract only Design data. Please read Domino help file for NoteCollection.

For example, this code will select all documents for export

NoteCollection nc = database.createNoteCollection(false);
nc.setSelectDocuments(true);