× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



...ah, interesting, I'll have a look, thanks. You still have to be connected though and you still can't do local development against a consistent database API which is a real drawback IMO.



________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxx> on behalf of Aaron Bartell <aaronbartell@xxxxxxxxx>
Sent: 16 March 2018 16:53
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] What forum is best for a Tope and Node question?

*>this then means you have to run your NodeJs server on the IBM i and can't
develop it locally and get all the benefits you get on the PC, like a
reloading development server when the code changes and a nice debugger*

Note I do all of my Node.js development in VSCode on my laptop and have the
source automatically sync'd to the IFS. And I have an ssh session open to
the directory of the application on the server.

Also, Node.js v8.x on IBM i supports server-side debugging through Chrome's
dev tools (and also through VSCode).

Here's a slide deck I gave at WMCPA a few days ago that details some useful
Node.js things the community can make use of:
https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkrengel.tech%2Flitmis-nodejs-all-the-things-slides&data=02%7C01%7C%7Cd927968c55154f71c89808d58b5626b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636568124484955115&sdata=6Z%2BFI%2Fe0ggPFw1C%2FkJF6ojfMnkvYQzQNEk0DGddDkwA%3D&reserved=0


Aaron Bartell
IBM i hosting, starting at $157/month. litmis.com/spaces


On Fri, Mar 16, 2018 at 10:45 AM, Tim Fathers <X700-IX2J@xxxxxxxxxxx> wrote:

Well, let's say you want to target DB2 (not just on the i) then there are
a number of DB2 drivers, none of which appear to be officially supported,
the most popular one seems to be "ibm_db", however, this doesn't support
the retrieval of metadata from a stored procedure call, which is necessary
if you wish to communicate back to the webservice caller the types and
sizes of the parameters and result set columns. IBM do have a native driver
I think, which I suspect does allow metadata retrieval, but this then means
you have to run your NodeJs server on the IBM i and can't develop it
locally and get all the benefits you get on the PC, like a reloading
development server when the code changes and a nice debugger (I've not
tried using a remote debugger on IBM Node, which might make debugging a bit
less painful). In Java EE, I can develop on my PC in the IDE, run a Tomcat
instance locally and use a local copy of DB2, MySQL or whatever, or even
point to my IBM i just by providing th
e right JDBC driver and connection options - my code stays exactly the
same. This also means that simply by providing different DB connection
resources in TomEE the same webservice can execute SPs on completely
different databases seamlessly.

Coming back to Node, if you look up drivers for SQL Server, for example,
there don't seem to be any officially supported ones. Furthermore, the APIs
for each driver are often completely different so you have to write
specific code for each database, or worse still, driver that you wish to
use. Also, TomEE has a build in database connection pooling facility, in
Node on the other hand, some drivers have it, some not, then you have to
find your own pooling solution.

If anyone knows better or I've missed something obvious I'd love to know,
as I said, I'd prefer to rewrite my framework in Typescript and run it
under Node then I have all the code under one roof as it were, but it just
doesn't seem that straightforward.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fweb400&data=02%7C01%7C%7Cd927968c55154f71c89808d58b5626b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636568124484955115&sdata=SN2HISsiVd53DwE62NVeF7znmVOfJYAV7FuWtVoNJx4%3D&reserved=0
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fweb400&data=02%7C01%7C%7Cd927968c55154f71c89808d58b5626b4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636568124484955115&sdata=dE2hvZu2o6KAKaysgUsmJtxtby24uwflZwjIfvzPiVk%3D&reserved=0.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.