Here's my two cents.

If you're dragging JT400 in to the mix you might as well do JSP and deploy on Tomcat and learn some Java.

Check out using the iToolkit and XMLSERVICE for data access form the Windows server.

No additional services or overhead on the Windows or Linux box.

Aaron has some good examples on his site.

The google should get you there 😊


Regards,

Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com

------------------------------

message: 4
date: Fri, 16 Mar 2018 13:12:04 +0000
from: Kelly Cookson <KCookson@xxxxxxxxxxxx>
subject: Re: [WEB400] What forum is best for a Tope and Node question?

Thanks for the responses. I finally figured it out. I needed to install the windows build tools:
Npm install windows-build-tools

I must say I am underwhelmed by the node-jt400 module.

1. Not very much in the way of documentation. Google searches turned up a lot of pages with people saying they had the same problem, but offered no fixes or offered suggestions that did not fix the problem. No commercial support available as far as I know.

2. node-jt400 only hides Java from you as long as no errors occur; then you're digging into Java call stacks.

3. I was able to copy a small text file (29 characters) from one IFS directory to another IFS directory. But when I tried to copy a 5MB text file from one IFS directory to another IFS directory, the result was an empty file in the second directory. No error messages or call stack to dig into or anything.

4. The examples provided on node-jt400 npm page for querying a DB2 file and calling a program did not work for me. I have some kind of JDBC error going on with the DB2 query. I'm trying to figure out how to pass the library list for the program. Just passing the program name returns an object not found error despite my user IBM i being set. Passing library/program returns a "not the correct length" error. I'm going to try /QSYS.LIB/MYLIB.LIB/MYPROGRAM.PGM when I get the chance.

I am also a little concerns about scalability if I'm putting Java into the mix. In theory it shouldn't slow down the event loop too much. It passes off the IBM i connection and work to the worker threads. But does Java create overhead opening connections to the IBM i? And it took a second or two to get a return saying the pool was finally closed (i.e., the IFS file was copied) even though the file was only 29 characters long. So I wonder about scalability.

I'm investigating other options.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
217-773-4486 ext. 12676
www.dotfoods.com<http://www.dotfoods.com>

From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Tim Fathers
Sent: Friday, March 16, 2018 3:26 AM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: [EXTERNAL] Re: [WEB400] What forum is best for a JTOpen and Node question?

What errors are you getting?

Did you actually create a new Node project? You need to do this first using "npm init" inside the folder where your project files are/will be, this will create a "package.json" file for you. I would avoid using spaces in the the folder name, it can cause problems with some Node utilities. If your version of NPM is less than 5.0.0 you should also add "--save" when you install a dependency "npm install node-jt400 --save" (as of version 5 it saves by default), this will update your package.json with the new dependency.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.