Nodejs on Apache Tomcat

4,030 views
Skip to first unread message

Pratik Patel

unread,
Feb 12, 2015, 9:04:20 AM2/12/15
to nod...@googlegroups.com
Hi,

Is it possible to run nodejs application on apache tomcat?

Thanks,
Pratik

Aria Stewart

unread,
Feb 12, 2015, 10:52:14 AM2/12/15
to nod...@googlegroups.com

> On Feb 12, 2015, at 9:04 AM, Pratik Patel <xprati...@gmail.com> wrote:
>
> Hi,
>
> Is it possible to run nodejs application on apache tomcat?

Kind of not really.

node.js runs as a separate process, and it's not written in Java, so a Tomcat container won't help too much. (As a side note, check out vert.x for something node-like but JVM-friendly. You won't get the whole ecosystem of node though)

Usually people integrate node with an HTTP proxy, rather than an app container -- something like apache with a reverse proxy module, or nignx.

I imagine there's ways to hack something of interest up, but what are your goals for doing so?

Aria

Pratik Patel

unread,
Feb 12, 2015, 11:34:05 AM2/12/15
to nod...@googlegroups.com

Thanks Aria. 

I have a web application running on Tomcat with MySQL database. I am aiming to generate automated network documents and integrate it into our web application. After reading some articles, blogs and evaluating products, I could find that klyajs-noflo ( https://github.com/noflo/klayjs-noflo ) would best suit our requirements. However, klayjs-noflo is built on top of Node.js, so I was thinking if I can deploy Node.js app(klayjs-noflo) in Tomcat somehow.

Regards,
Pratik

Aria Stewart

unread,
Feb 12, 2015, 12:07:59 PM2/12/15
to nod...@googlegroups.com

> On Feb 12, 2015, at 11:34 AM, Pratik Patel <xprati...@gmail.com> wrote:
>
>
> Thanks Aria.
>
> I have a web application running on Tomcat with MySQL database. I am aiming to generate automated network documents and integrate it into our web application. After reading some articles, blogs and evaluating products, I could find that klyajs-noflo ( https://github.com/noflo/klayjs-noflo ) would best suit our requirements. However, klayjs-noflo is built on top of Node.js, so I was thinking if I can deploy Node.js app(klayjs-noflo) in Tomcat somehow.


Oh that is an interesting case.

It doesn't look like klayjs-noflow is built to run on node at all. node is used to run dependency management tools -- like bower -- but it's a javascript library meant to run in the browser. It should be able to be integrated with your java based server with little difficulty, as regular web assets.

Do you need to run the klayjs-noflow in the server instead, offloading from the browser? Or would that suffice?

Aria

Pratik Patel

unread,
Feb 13, 2015, 4:26:36 AM2/13/15
to nod...@googlegroups.com
Hi Aria,

Thanks for the information. If I could run klayjs-noflow on the server it would be great otherwise I will try to stick it with browser only.

Regards,
Pratik
Reply all
Reply to author
Forward
0 new messages