In Domino Report Server/400 version 1.56 or above, there is a Java check-in API that allows you to save documents directly to a Domino server on an iSeries, Windows machine, or any other platform. The Domino server no longer has to be the same iSeries where the reports are generated.
To use this Java API:
- Make sure you have Domino Report Server/400 version 1.56 or above.
- Use the NTSJAVAEN command to install the Java classes.
- From the iSeries or Windows Domino server console, use the LOAD DIIOP command to start the DIIOP service. Java interfaces use DIIOP to talk to the Domino server.
- Run the VFYJDK command to make sure that Java SDK is 1.4.
- Set the following data areas as needed for Domino remote connectivity via the DIIOP service:
Note: Only NTSMON uses these data areas. The user ID and password may or may not be needed. Test your server to see whether these data areas are required.
- Use the Domino Java API:
CHGDTAARA DTAARA(RJSDOM/NTSUSEJAVA) VALUE('*YES')
- Domino user ID:
CHGDTAARA DTAARA(RJSDOM/NTSUSERID) VALUE(' ')
For example:
CHGDTAARA DTAARA(RJSDOM/NTSUSERID) VALUE('Amanda Smith')
- Domino password:
CHGDTAARA DTAARA(RJSDOM/NTSUSERPW) VALUE(' ')
For example:
CHGDTAARA DTAARA(RJSDOM/NTSUSERPW) VALUE('MYPASSWORD')
- Manually test the NTSADDRPTJ command or run the Domino Report Server/400 output queue monitor NTSMON to import reports. RJS Software recommends first testing the NTSADDRPTJ command by itself to add a file manually to a Domino database.
For example: To manually test NTSADDRPTJ by adding a file /REPORT.TXT to the AS400RPT2.NSF database running on a Domino server with host name RJS1 in the main Domino data directory (usually C:\Lotus\Domino\Data), using user ID Amanda Smith and password MYPASSWORD, use:
Note: The FORMNAME should always be Archived Document.
NTSADDRPTJ SVRNAME(RJS1) DBFILXNAME(AS400RPT2.NSF) DOCUMENT('/REPORT.TXT')DOMUSER('Amanda Smith') DOMPASS('MYPASSWORD') FORMNAME('Archived Document') DOCTITLE('Test Report') DSPSTDOUT (*YES) DLTSTDOUT(*YES)
- If reports import, the API is working.
- If problems occur, use the DSPSTDOUT(*YES) value to display Java errors so you can troubleshoot. Errors usually occur because of server or user name mismatches.
- If your iSeries host name for the Domino server does not match the Domino server name, you may get a Java error that says: Database has not been opened yet. If you get this error, make sure the SVRNAME parameter matches the actual Domino server name.
Last Modified On:
No, open a new Support Case