hosted web application in existing environments

61 views
Skip to first unread message

Rene Ummels

unread,
Oct 13, 2014, 5:33:12 AM10/13/14
to nod...@googlegroups.com
Hi,
 
Is it possible to run Node.js code in existing systems where web container Application Server is Jetty or Weblogic?
Or do we then need to redesign the Node.js code to Java/JEE and JSP code?
 
 
thanks,
Rene
 

Aria Stewart

unread,
Oct 13, 2014, 10:08:31 AM10/13/14
to nod...@googlegroups.com
All the node-like environments (nodyn, vert.x) are ports or emulations; your mileage may vary.

You can also start the node process as an external process and proxy to it over HTTP.

You can use a worker and job queue system to communicate with node processes, especially if you start a service-oriented architecture.

You can have Node be a proxy to your other application, running as an app server along side of your Java app server.

You can integrate purely through a load balancer or front-end proxy, if your apps don't need to talk to each other, just be merged into a cohesive whole.

It really depends on WHAT you're doing. Node doesn't even imply 'web', so knowing what you're doing would be easier to give specific answers for.

Aria

Angel Java Lopez

unread,
Oct 13, 2014, 10:32:02 AM10/13/14
to nod...@googlegroups.com
I prefer Node.js alone, with communication with JVM world, as pointed by Aria

Another link, I never tried it, for Java 8
Nashorn and Avatar

Angel "Java" Lopez
@ajlopez

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/FE6C070C-629D-4EB8-AEC4-C5578E20A7AA%40nbtsc.org.

For more options, visit https://groups.google.com/d/optout.

Rene Ummels

unread,
Oct 13, 2014, 11:00:19 AM10/13/14
to nod...@googlegroups.com
Hi Aria,
 
Let me shortly explain what I try to achieve:
A client connects to our application, a TCP connection is then set up and kept open. At some point in time the client sends data to the application; this triggers the
application to update the database and also to send new data (binary/JSON/MQTT) back to the client.
Later on in our project we will change from TCP to HTTP-REST.
Do you need more info?
 
Do I understand correctly that you for instance propose to design a Proxy in our Application Server and that this Proxy connects to external node containing the Node.js application?
 

///Rene
 

Aria Stewart

unread,
Oct 13, 2014, 11:11:28 AM10/13/14
to nod...@googlegroups.com
That is one option. Not a bad one if the java application is not legacy.


I think I would probably make node the outer layer -- write a TCP protocol handler with node, and have it pass data to the existing application. Start building REST API using node. But I have a strong bias for doing things in node.

I would probably not integrate node with the application server -- I would deploy using ndm or forever or pm2 -- and just run the app next to Java, not inside or started by it.

Are there deployment constraints you're trying to work around?

Rene Ummels

unread,
Oct 14, 2014, 9:32:48 AM10/14/14
to nod...@googlegroups.com
The main deployment constraint is it is expected we handle communication with clients by the Application Server.
 
///Rene
 

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages